# 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 '-100,50' at line 3
SELECT noticias.*, cat.nome as categoria_nome, blogs.nome as blog_nome, blogs.url as blog_url
FROM (tbnoticias noticias INNER JOIN tbcategorias cat ON noticias.categoria_id=cat.id_categoria)
INNER JOIN tbsiteblogs blogs on blogs.id_blog=noticias.blog_id WHERE noticias.flag_status=1 ORDER by data desc LIMIT -100,50