A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and type=3 order by Id desc' at line 1

select * from topic where lan= and type=3 order by Id desc

Filename: /home/tdegcom/public_html/models/ty_model.php

Line Number: 35