Форуми / National / Russian / Тех. поддержка / Баги 0910

Chiaroscuro
#35346 04.09.2012 12:03

Что за нафиг:

SQL error 42000: Syntax error or access violation: 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 ' 30' at line 2

#0  cot_diefatal(SQL error 42000: Syntax error or access violation: 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 ' 30' at line 2) called at [/home/admin/data/www/www.ru/system/database.php:457]
#1  CotDB->query(SELECT t.* , p.poll_id, p.poll_type FROM sed_forum_topics AS t  LEFT JOIN sed_polls AS p ON t.ft_id=p.poll_code
    WHERE ft_cat='32' AND (poll_type='forum' OR poll_id IS NULL) ORDER BY ft_sticky DESC, ft_updated desc LIMIT , 30) called at [/home/admin/data/www/www.ru/modules/forums/inc/forums.topics.php:222]
#2  include(/home/admin/data/www/www.ru/modules/forums/inc/forums.topics.php) called at [/home/admin/data/www/www.ru/modules/forums/forums.php:37]
#3  require_once(/home/admin/data/www/www.ru/modules/forums/forums.php) called at [/home/admin/data/www/www.ru/index.php:96]

С раздела форума переход.

Поправил, запятая лишняя, вернее не лишняя переменной $d нет :( Помогите.

 

Временно поставил if (!$d) $d=0;


Відредаговано: Chiaroscuro (04.09.2012 12:45, 12 років тому)