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 'p,7' at line 1

select * from produk_hukum where produk_hukum_nomor like '%2016%' order by RIGHT(produk_hukum_nomor, 4) asc limit p,7

Filename: controllers/Hukor.php

Line Number: 74