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 content_type_id=2487 and published=1 and publish_date <= '2017-02-27 14:00:00' and contents.magazine_id=10