Error on query: SELECT i.id, i.desc FROM img i WHERE i.id<11157 AND (i.type="image" OR i.type="animation") ORDER BY i.id DESC LIMIT 1. Lost connection to MySQL server during query