I have a delete query that I'm running, but just realized that this doesn't work when $user_id is null (which happens in certain cases).
$id = 1; $user_id = null; $delete = $sql->prepare(" DELETE FROM `game_player` WHERE `id` = ? AND `user_id` = ? "); if ($delete->execute(array( $id, $user_id, )); Is there any work around other than having different queries for when the value is null, since apparently the only way to have the where work properly is with user_id IS NULL instead of user_id = NULL...