SELECT p.*, p.id, DATE_FORMAT(datum, '%e.%c.%Y') as fdatum, p.obrazky as obrazky, p.nazev_cz as nazev, p.popis_cz as popis, p.text_cz as text, k.nazev_cz as knazev, k.id as kid, p.soubory_cz as soubory FROM foto_produkty as p, foto_kategorie as k WHERE p.id = '152' AND p.id_kategorie = k.id AND zobrazit = '1'
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)