MySQL Query Error: You have an error in your SQL syntax near '%20tipAttribute%20+%20''' at line 1

Query: select intPageID from Pages where strFriendlyURL = 'js/cluetip/'%20+%20tipAttribute%20+%20''