Line 71 -- 31 seconds ago
Query Error: SELECT comment_datestamp AS timestamp, comment_name AS user_id, user_name, comment_item_id AS item_id, comment_type AS item_no, comment_message AS item_text, 0 AS item2_id, 0 AS item2_no, '' AS item2_text FROM fusion5E6gQ_comments LEFT JOIN fusion5E6gQ_users ON (comment_name = user_id) LEFT JOIN fusion5E6gQ_news ON (comment_item_id = news_id) LEFT JOIN fusion5E6gQ_articles ON (comment_item_id = article_id) LEFT JOIN fusion5E6gQ_article_cats ON (article_cat = article_cat_id) LEFT JOIN fusion5E6gQ_photos ON (comment_item_id = photo_id) LEFT JOIN fusion5E6gQ_photo_albums USING (album_id) WHERE ( (. AND comment_type = 'N' AND (news_visibility='0' OR news_visibility='-101') AND (news_start='0' OR news_start<=1646930186) AND (news_end='0' OR news_end>=1646930186) AND news_draft='0') OR (1 AND comment_type = 'A' AND (article_cat_visibility='0' OR article_cat_visibility='-101') AND article_draft='0') OR (1 AND comment_type = 'P' AND (album_visibility='0' OR album_visibility='-101')) ) AND comment_datestamp > 1646923776;
Stack Trace:
#0 /home/shadetr2/trans-galactic.com/includes/classes/PHPFusion/Database/Driver/PDOMySQL.php(67): PDOStatement->execute()
#1 /home/shadetr2/trans-galactic.com/includes/classes/PHPFusion/Database/AbstractDatabaseDriver.php(312): PHPFusionDatabaseDriverPDOMySQL->_query('SELECT comment...', Array)
#2 /home/shadetr2/trans-galactic.com/includes/db_handlers/all_functions_include.php(113): PHPFusionDatabaseAbstractDatabaseDriver->query('SELECT comment...', Array)
#3 /home/shadetr2/trans-galactic.com/infusions/autonews_panel/autonews_include.php(197): dbquery('SELECT comment...')
#4 /home/shadetr2/trans-galactic.com/infusions/autonews_panel/autonews_include.php(80): createbody(Array)
#5 /home/shadetr2/trans-galactic.com/infusions/autonews_panel/autonews_include.php(45): autonews_send(Array)
#6 /home/shadetr2/trans-galactic.com/infusions/autonews_panel/autonews_panel.php(30): autonews()
#7 /home/shadetr2/trans-galactic.com/includes/classes/PHPFusion/Panels.php(321): include('/home/shadetr2/...')
#8 /home/shadetr2/trans-galactic.com/themes/templates/footer.php(27): PHPFusionPanels->getSitePanel()
#9 /home/shadetr2/trans-galactic.com/index.php(76): require_once('/home/shadetr2/...')
#10 {main}
Error Nature: SQLSTATE[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 '. AND comment_type = 'N' AND (news_visibility='0' OR news_visibility='-101') AND' at line 19
....USING (album_id) WHERE ( (. AND comment_type = 'N' AND....
There should not be . AND
at start of condition. However, the whole SQL query is bad anyway.Category Forum
Modifications and Requests - 9Labels
Statistics
6 participants
Notifications
You are not receiving notifications from this thread.
Related Questions