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 'etang-vergy' HAVING LOWER(state_full) = 'bourgogne' ORDER BY population DESC LIM' at line 1