the problem is caused by the ORDER BY Clause.
when using both ORDER BY and GROUP by in the same query, the GROUP BY must be first.
ORDER BY Line_Name DESC GROUP BY picture.Line_Id
GROUP BY picture.Line_Id ORDER BY Line_Name DESC
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.