Memcache: Query failedSELECT slug,thumb_url,headline_hash, headline, snippet, COUNT(headline), decode_url, SUBSTR(TIMEDIFF(CURRENT_TIMESTAMP,TIMESTAMP),1,2) as hrs, SUBSTR(TIMEDIFF(CURRENT_TIMESTAMP,TIMESTAMP),4,2) as minutes, twit_url,s_url FROM ipl and headline<>'' and spam='0' AND headline NOT LIKE '%http%' GROUP BY headline ORDER BY IF (COUNT(headline)>2,(COUNT(headline)/GREATEST(CAST(SUBSTR(TIMEDIFF(CURRENT_TIMESTAMP,TIMESTAMP),1,2) AS UNSIGNED),1)),0) DESC LIMIT 240, 30