Invalid query: 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 'privacy',700,500)'' at line 1 Whole query: select PageID from Dating_Pages where PagePath='/index/javascript:pop('privacy',700,500)'