Try issuing

select @@sql_max_join_size

And also make a product from the number of rows from all the tables
involved in the join (with WHERE clause applied) and if it exceeds the
number given from the select I gave you above... then that's your
reason !

Also bare in mind that although you only request 30 rows with LIMIT...
MySQL will still JOIN the tables... the LIMIT clause is applied just
before sending the resultset to the client !

If you can't do it otherwise try setting a higher
"sql_max_join_size"... or try using some temporary tables !

Good fortune !
--
Gabriel PREDA
Senior Web Developer

#1104 - The SELECT would examine more rows than MAX_JOIN_SIZE. Check your
WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT
is ok

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to