Problem with searchfunction
-
Error message:
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]
SELECT SQL_CALC_FOUND_ROWS DISTINCT www_posts.ID FROM www_posts INNER JOIN www_postmeta AS a ON ( a.post_id = www_posts.ID ) LEFT JOIN www_postmeta AS b ON ( (( b.post_id = a.post_id )) AND (( b.meta_key LIKE CONCAT( '\_', a.meta_key ) )) ) LEFT JOIN www_postmeta AS acsort_postmeta ON www_posts.ID = acsort_postmeta.post_id AND acsort_postmeta.meta_key = '_thumbnail_id' WHERE 1=1 AND ( ( ( b.meta_id IS NOT NULL ) AND ( a.meta_value LIKE '%mats%' ) ) OR ( ( www_posts.post_title LIKE '%mats%' ) OR ( www_posts.post_excerpt LIKE '%mats%' ) OR ( www_posts.post_content LIKE '%mats%' ) ) ) AND ((www_posts.post_type = 'spelare' AND (www_posts.post_status = 'publish' OR www_posts.post_status = 'acf-disabled' OR www_posts.post_status = 'future' OR www_posts.post_status = 'draft' OR www_posts.post_status = 'pending' OR www_posts.post_status = 'private'))) GROUP BY www_posts.ID ORDER BY CASE WHEN acsort_postmeta.meta_valueIS null THEN 1 WHEN acsort_postmeta.meta_value= '' THEN 1 ELSE 0 END , acsort_postmeta.meta_valueASC , www_posts.ID ASC LIMIT 0, 20The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.