×

Error

The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay SQL=SELECT a.id, a.title, a.alias, a.introtext, a.`fulltext`, a.catid, a.state, a.access, a.created, a.created_by, a.created_by_alias, a.modified, a.featured, a.language, a.hits, a.publish_up, a.publish_down, a.images, a.urls, a.language, a.metakey, a.metadesc, a.metadata,c.title AS category_title, c.alias AS category_alias,ua.name AS author_name,um.name AS last_modified_by,ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count,vl.title AS access_title,l.title AS language_title FROM tmq9y_content as a LEFT JOIN tmq9y_categories AS c ON c.id = a.catid LEFT JOIN tmq9y_users AS ua ON ua.id = a.created_by LEFT JOIN tmq9y_users AS um ON um.id = a.modified_by LEFT JOIN tmq9y_content_rating AS v ON a.id = v.content_id LEFT JOIN tmq9y_viewlevels AS vl ON a.access = vl.id LEFT JOIN tmq9y_languages AS l ON a.language = l.lang_code LEFT JOIN tmq9y_contentitem_tag_map AS ct ON ct.content_item_id = a.id LEFT JOIN tmq9y_tags AS t ON t.id = ct.tag_id LEFT OUTER JOIN (select rsi.provider_id, rsi.order from tmq9y_roksprocket_items as rsi where module_id = 273) rsi on a.id = rsi.provider_id WHERE ((a.access IN(1,1) AND (a.state = 1 or a.state = 2) AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2017-03-29 22:49:09') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2017-03-29 22:49:09') AND (a.state != -2)) AND a.id IN (357)) OR ((a.access IN(1,1) AND (a.state = 1 or a.state = 2) AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2017-03-29 22:49:09') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2017-03-29 22:49:09') AND (a.state != -2)) AND a.catid IN (111)) GROUP BY id ORDER BY IF(ISNULL(rsi.order),1,0),rsi.order

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7