Hi i have a client using zen cart and has tried to send an email from the website and they now get the following error message
1104 The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
in:
[SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM customers c LEFT JOIN orders o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
I contacted my hosting provider and they gave me the following info
MySQL will refuse to execute select statements that process a very large number of rows. You should either adjust your select statement to make it more efficient, or set SQL_BIG_SELECTS=1 in the session before executing the large select statement. Use something like this to do that ..
$db->sql_query("SET OPTION SQL_BIG_SELECTS=1");
but i have no idea what this means??? what do I need to do to increase this so it will fix the problem??
I then contacted them again saying i didnt understand how to do this and they said the following
You need to send . You can either do it on the page throwing the error, or set it on a global level by including the query after the database connection. The syntax is likely to differ depending on the software in use, so if you are having trouble using this you may want to review the software documentation or community forums as its very likely this has occurred in the past
am still as lost as i first was, how do i send "SET OPTION SQL_BIG_SELECTS=1" before the query is executed??
can anyone help please,
below is a screen shot of how the contact customers pag now looks
![]()


Reply With Quote

