An error ocurred at query SELECT AVG(rating) as rating FROM default_comments WHERE listing_id='299017' GROUP BY listing_id