Adatbázis lekérdezés szintaktikai hiba!
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 pm.sender = u.id AND pm.deleted_by_to = 0 ORDER BY pm.date DESC ' at line 4

SELECT pm.id id, pm.title title, UNIX_TIMESTAMP(pm.date) date, pm.mail_read mail_read, u.username username FROM pm pm, users u WHERE pm.mail_to = AND pm.sender = u.id AND pm.deleted_by_to = 0 ORDER BY pm.date DESC LIMIT 0, 10