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 'shaya takhta' HAVING LOWER(state_full) = 'novosibirsk' ORDER BY population DESC ' at line 1