A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP by painting.`painting_title`' at line 1

SELECT painting.`painting_title`,painting_images.`painting_images_img` FROM `painting`,`painting_images`,`service` WHERE painting.`status`=1 and painting_images.`status`=1 and painting.`painting_id`=painting_images.`painting_images_id_frk` and `service`.`service_id`=`painting`.`service_id` and `service`.`service_id`= GROUP by painting.`painting_title`

Filename: models/Home_model.php

Line Number: 183