Wystąpił wyjątek:
Kod wyjątku: 6

Subquery returns more than 1 row
SELECT SQL_CALC_FOUND_ROWS a.*, (select file FROM publics_photo WHERE public_ID=a.id && depart_ID='13' && thumb='1' && trash='0') as file FROM publics_base13 as a WHERE a.visible='1' && a.trash='0' && a.auth='1' && TO_DAYS(NOW())<=TO_DAYS(a.end_date) && ( (a.promo=1 && TO_DAYS(NOW())<=TO_DAYS(a.promo_end)) || a.promo=0 ) ORDER BY a.promo DESC, a.id DESC LIMIT 5

#0 /home/buduj/domains/buduj.co.uk/public_html/structure/subpage/home.php5(118): DataBase->select('SELECT SQL_CALC_FOUND_ROWS a.*, (select file F...')
#1 /home/buduj/domains/buduj.co.uk/public_html/structure/class/class.Template.php5(203): include_once('/home/buduj/domains/buduj.co.uk/public_html/structure/su...')
#2 /home/buduj/domains/buduj.co.uk/public_html/index.php5(140): Template->initDevision()
#3 {main}

URL: http://buduj.co.uk//
IP: 54.156.90.21