File G:\apache64\htdocs\include\functions_common.php
Line513
Sqlselect a.* ,a.ratingm as votes , format(ifnull(((a.ratingp*100)/ ( a.ratingm*5))/10,0),1) as rating ,format(ifnull(((a.ratingp*100)/ ( ratingm*5))/20,0),1) as ratings from movies a where ( ( a.keywords like '%Haunted House%' or a.keywords like '%Location In Title%' or a.keywords like '%Two Word Title%' or a.keywords like '%Jim Sheridan%' or a.keywords like '%Ghost%' or a.keywords like '%The Others%' or a.keywords like '%Sixth Semse%' or a.keywords like '%Sixth Sense%' or a.keywords like '%Daniel Craig%' or a.keywords like '%Rachel Weisz%' or a.keywords like '%Naomi Watts%' or a.keywords like '%watch dream house%' ) or a.name like '% Dream%' or a.name like '% Dream %' or a.name like '%Dream %' or a.name like '% House%' or a.name like '% House %' or a.name like '%House %' or a.name like '% (2011)%' or a.name like '% (2011) %' or a.name like '%(2011) %' or a.name like '%Dream House (2011)%' or a.name like '%DreamHouse(2011)%' or a.name like '%DreamHouse(2011)%' ) and a.id <>'16815' order by a.release_date desc limit 20
ErrorLost connection to MySQL server during query