Error in query: SELECT * FROM locations WHERE loc_id = \\\' agid \\\'. 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 '\\\' agid \\\'' at line 1