Error: 1116 - SQLSTATE: HY000 ER_TOO_MANY_TABLES
March 11th, 2009
Description:
Message: Too many tables; MySQL can only use %d tables in a join
Description:
Message: Too many tables; MySQL can only use %d tables in a join
MySql-Server error: 1116 sqlstate: hy000 (er_too_many_tables), er_too_many_tables), j, lrm-00118: syntax error at '=' at the end of input, mysql
Double check your data model. Instead of one big query, try to use multiple queries, fetch the results and place them into a hast list data structure.