Error!

MySQL Error: Query execution was interrupted
SQL Statement: SELECT count(*) as total_records FROM contents JOIN content_types on contents.content_type_id = content_types.id WHERE contents.id != 126599 and content_type_id=2487 and published=1 and date(publish_date) <= '2014-12-21' and contents.magazine_id=11