Error: E_USER_NOTICE
URL: http://shaden.ru/forum_topic.php?topic_id=53
File: /home/kikimora/public_html/shaden.ru/_include/lib/db5.php
Line: 134
Message: Can't execute query: 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 'ORDER BY photo_id LIMIT 1' at line 1
SELECT photo_id FROM photo WHERE user_id=  ORDER BY photo_id LIMIT 1

Call stack:

File: /home/kikimora/public_html/shaden.ru/_include/lib/db5.php (Line: 134)
Function: trigger_error

File: /home/kikimora/public_html/shaden.ru/_include/lib/db5.php (Line: 363)
Class: DB
Function: query

File: /home/kikimora/public_html/shaden.ru/forum_topic.php (Line: 71)
Class: DB
Function: result

File: /home/kikimora/public_html/shaden.ru/_include/lib/block.php (Line: 220)
Class: CForumTopics
Function: parseBlock

File: /home/kikimora/public_html/shaden.ru/_include/core/main_close.php (Line: 20)
Class: CHtmlBlock
Function: parse

File: /home/kikimora/public_html/shaden.ru/forum_topic.php (Line: 205)
Function: include