SELECT COUNT(*) AS NumTotal FROM ma027localescomerciales WHERE ma027Estado = 0 AND ma027v]ë~-·ooqšX = AND ma027IdMunicipio = 0
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 ']?~-?ooq?X = AND ma027IdMunicipio = 0' at line 1