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 'AND `v` = 1 ORDER BY `id` ASC LIMIT 8' at line 5

SELECT * FROM `main` WHERE `tolgoi_ug_mun` = 1 AND `id` > AND `v` = 1 ORDER BY `id` ASC LIMIT 8

Filename: models/Main_model.php

Line Number: 387