Error!

MySQL Error: Query execution was interrupted
SQL Statement: SELECT contents.id,contents.title,contents.content_type_id,contents.primary_image,contents.author_name,contents.slug,contents.summary,contents.primary_issue_slug,contents.publish_date FROM contents JOIN content_taxonomy on contents.id = content_taxonomy.content_id WHERE contents.published=1 and publish_date <= '2017-02-27 14:00:00' and contents.magazine_id = 9 and ( contents.id != '91324') and contents.content_type_id = 2487 group by contents.id ORDER BY publish_date desc LIMIT 4