SELECT * FROM dz_pop_windows WHERE brand='default' AND (site_code='ATEA' OR site_code='') AND (page_name='' OR page_name='locations/lewis's_l') ORDER BY rank ASC
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 's_l') ORDER BY rank ASC' at line 7