SQL Statement:
Code: Alles auswählen
$sql = "SELECT f1.*, AVG(r.rate_point) AS rating, COUNT(r.votes_link) AS total_votes, u.user_id, u.username, c.cat_id, c.cat_name, COUNT(DISTINCT cm.comments_id) AS total_comments
FROM " . LINKS_TABLE . " AS f1, " . LINK_CATEGORIES_TABLE . " AS c
LEFT JOIN " . LINK_VOTES_TABLE . " AS r ON f1.link_id = r.votes_link
LEFT JOIN ". USERS_TABLE ." AS u ON f1.user_id = u.user_id
LEFT JOIN " . LINK_COMMENTS_TABLE . " AS cm ON f1.link_id = cm.link_id
WHERE f1.link_id IN ($search_results)
AND c.cat_id = f1.link_catid
AND f1.link_approved = '1'
GROUP BY f1.link_id
ORDER BY $sort_method $sort_order
LIMIT $limit_sql";
Code: Alles auswählen
Could not obtain search results
DEBUG MODE
SQL Error : 1054 Unknown column 'f1.link_id' in 'on clause'
SELECT f1.*, AVG(r.rate_point) AS rating, COUNT(r.votes_link) AS total_votes, u.user_id, u.username, c.cat_id, c.cat_name, COUNT(DISTINCT cm.comments_id) AS total_comments FROM phpbb_links AS f1, phpbb_link_categories AS c LEFT JOIN phpbb_link_votes AS r ON f1.link_id = r.votes_link LEFT JOIN phpbb_users AS u ON f1.user_id = u.user_id LEFT JOIN phpbb_link_comments AS cm ON f1.link_id = cm.link_id WHERE f1.link_id IN (2) AND c.cat_id = f1.link_catid AND f1.link_approved = '1' GROUP BY f1.link_id ORDER BY link_time DESC LIMIT 10
Line : 485
File : link_search.phpWileCoyote
PS.: Ich habe mich mit dem Problem an euch gewandt, da der Mod Autor schon seit September 2005 auf phpbb.com nicht mehr auf Fragen antwortet.