#0  SQL->sqlDie(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 40, 20' at line 1, ) called at [/var/www/reference/core/sql/SQL.php:3106]
#1  SQL->internalQuery( LIMIT 40, 20, ,  LIMIT 40, 20) called at [/var/www/reference/core/sql/SQL.php:239]
#2  SQL->query( LIMIT 40, 20, 1) called at [/var/www/reference/core/lists/LISTCOMMON.php:197]
#3  LISTCOMMON->display( LIMIT 40, 20, list) called at [/var/www/reference/core/modules/list/LISTRESOURCES.php:179]
#4  LISTRESOURCES->processGeneral() called at [/var/www/reference/core/modules/list/LISTRESOURCES.php:114]
#5  LISTRESOURCES->__construct() called at [/var/www/reference/index.php:123]

\nYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 40, 20' at line 1