![]() |
ordering by average when selecting columns
how would i go about that?
this is what i tried but gives me error 1111 [sql] SELECT *, prs_pieces.pieceid AS pieceid, prs_pieces.title AS title, prs_pieces.pagetext AS pagetext, user.username AS username, NOT ISNULL(avatardata) AS hascustom, customavatar.dateline AS avatardateline, prs_reviews.username AS reviewer, prs_reviews.dateline AS reviewdateline, prs_info.reviewcount AS reviewcount FROM prs_pieces LEFT JOIN prs_categories ON (prs_categories.catid = prs_pieces.catid) LEFT JOIN prs_sections ON (prs_sections.sectionid = prs_categories.sectionid) LEFT JOIN prs_reviews ON (prs_reviews.pieceid = prs_pieces.pieceid) LEFT JOIN prs_info ON (prs_info.pieceid = prs_pieces.pieceid) LEFT JOIN user AS user ON (user.userid = prs_pieces.userid) LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) ORDER BY AVG(prs_reviews.rating) DESC[/sql] got it sorted, in short it was rejecting the "*," |
All times are GMT. The time now is 11:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|