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 media_gallery_id = 24 AND media_ack = 1' at line 1
SELECT * FROM ex_gallery_media WHERE media_id = AND media_gallery_id = 24 AND media_ack = 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /www/htdocs/w00de2e7/punkfoto/tb/tbB/db.php on line 393
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /www/htdocs/w00de2e7/punkfoto/tb/tbB/db.php on line 399
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00de2e7/punkfoto/tb/tbB/db.php:76) in /www/htdocs/w00de2e7/punkfoto/public/p/media/m/index.php on line 279