2007-12-15, 03:47 PM
hi all;
im making a plug-in, and i have to get the last threads from database
i put
$query = $db->query ("SELECT subject,username,uid,tid,replies FROM ".TABLE_PREFIX."threads WHERE visible='1' ".get_unviewable()." ORDER BY dateline DESC LIMIT 0,".$mybb->settings['advportal_max']."");
and getting this error:
MySQL error: 1064
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 '' at line 1
Query: SELECT subject,username,uid,tid,replies FROM mybb_threads WHERE visible='1' ORDER BY dateline DESC LIMIT 0,
i have done the settings,templates but i get this problem
thanks.
im making a plug-in, and i have to get the last threads from database
i put
$query = $db->query ("SELECT subject,username,uid,tid,replies FROM ".TABLE_PREFIX."threads WHERE visible='1' ".get_unviewable()." ORDER BY dateline DESC LIMIT 0,".$mybb->settings['advportal_max']."");
and getting this error:
MySQL error: 1064
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 '' at line 1
Query: SELECT subject,username,uid,tid,replies FROM mybb_threads WHERE visible='1' ORDER BY dateline DESC LIMIT 0,
i have done the settings,templates but i get this problem
thanks.