Database Problem: 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 UNIX_TIMESTAMP(A.dt) > UNIX_TIMESTAMP()-(8*60*60) ORDER BY A.dt' at line 7
SELECT A.id, A.url, A.title, A.body, B.name, B.url as feedurl, UNIX_TIMESTAMP(A.dt) as timestamp FROM lylina_items A, lylina_feeds B, lylina_userfeeds C WHERE B.id = A.feed_id AND B.id = C.feed_id AND C.user_id = AND UNIX_TIMESTAMP(A.dt) > UNIX_TIMESTAMP()-(8*60*60) ORDER BY A.dt DESC, A.title LIMIT 20