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 jatek.id=jid and oid=6 ORDER BY fdatum desc' at line 2 Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /web/ingyenjatek/ingyenjatekok.net/www/functions.php on line 46