getGameList:366
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ladder401_game.clanid1 = ) OR (ladder401_game.clanid0 = AND ladder401_game.' at line 1
SELECT id FROM ladder401_game WHERE ladder401_game.confirmed = 1 AND (ladder401_game.id <> 17 AND ((ladder401_game.clanid0 = AND ladder401_game.clanid1 = ) OR (ladder401_game.clanid0 = AND ladder401_game.clanid1 = )))