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 'Pokie"). Double or triple up any win. Play the pokies at home!%" order by softin' at line 1||||| select softinfo.*, subcategory.id as categoryid, subcategory.catName as subCatName, subcategory.parentid, parentcategory.catName from softinfo inner join subcategory on subcategory.id = softinfo.categoryid inner join parentcategory on subcategory.parentId = parentcategory.id where softkeyword like "%Pokie Magic - Snowflake Express 5 is an Aussie style 20 or 30 payline reel poker machine simulation (also called a slot machine or a "Pokie"). Double or triple up any win. Play the pokies at home!%" order by softinfo.id desc limit 0, 50/softwareDetail.php