loking için teşekkürler.
i 3 tablolar var
books, book_category, book_click.
books table book_id, url, title, img, short_desc, featured, enable
book_category table book_id, category_id
book_clicks table site_id, time, views
i görünümü tarafından books tablosundan SUMS veri almak istiyorum ama bu sadece bir sonuç döndürür
SELECT books.book_id, url, title, short_desc, img, featured, SUM(views) as total_views
FROM books,book_category,book_click WHERE enable=1 AND category_id=7
AND books.book_id=book_category.book_id
ORDER BY strong texttotal_views DESC