Oops! Database error ...

Can't create/write to file '/tmp/#sql-temptable-19ccf0-6e552f-95a96.MAI' (Errcode: 2 "No such file or directory")

select wierchy_products.*,
        (select file FROM wierchy_products_photos WHERE productId = idProduct ORDER BY idProductPhoto LIMIT 0,1 ) as photo,
        wierchy_products_to_documents.documentId,
        wierchy_products_brands.name as brandName
        from wierchy_products
        LEFT JOIN wierchy_products_to_documents ON productId = idProduct
        LEFT JOIN wierchy_products_brands ON idBrand = brandId
        where documentId = '46' AND statusId > 0
        having photo is not null
        order by  statusId, name ASC
    

/home/wierchykra/domains/wierchy.krakow.pl/public_html/inc/dod/catalog.php

in line 137

using function query with arguments:

  • select wierchy_products.*, (select file FROM wierchy_products_photos WHERE productId = idProduct ORDER BY idProductPhoto LIMIT 0,1 ) as photo, wierchy_products_to_documents.documentId, wierchy_products_brands.name as brandName from wierchy_products LEFT JOIN wierchy_products_to_documents ON productId = idProduct LEFT JOIN wierchy_products_brands ON idBrand = brandId where documentId = '46' AND statusId > 0 having photo is not null order by statusId, name ASC

/home/wierchykra/domains/wierchy.krakow.pl/public_html/inc/start.php

in line 168

using function include with arguments:

  • /home/wierchykra/domains/wierchy.krakow.pl/public_html/inc/dod/catalog.php

/home/wierchykra/domains/wierchy.krakow.pl/public_html/lib/main.php

in line 106

using function include with arguments:

  • /home/wierchykra/domains/wierchy.krakow.pl/public_html/inc/start.php

/home/wierchykra/domains/wierchy.krakow.pl/public_html/index.php

in line 20

using function include with arguments:

  • /home/wierchykra/domains/wierchy.krakow.pl/public_html/lib/main.php