Строительные материалы


ОШИБКА ЗАПРОСА:
SELECT distinct b.*, bstat.stat1_real FROM exp2_expo_board b inner join exp2_expo_board_pavilion bp on bp.id_board=b.id_board and bp.exist=1 inner join exp2_expo_pavilion p on p.id_pavilion=bp.id_pavilion and p.exist=1 inner join exp2_expo_pavilion pp on p.id_parent=pp.id_pavilion and pp.exist=1 inner join exp2_expo_exhibition e on e.id_exhibition=b.id_exhibition and e.exist=1 left join exp2_expo_tarif_def t on t.id_tarif=b.id_tarif and name_def='pavilion_features' left join exp2_expo_board_stat bstat ON bstat.id_board=b.id_board WHERE b.EXIST=1 and (p.id_pavilion='stroitel-ny-mat-268' or p.slug='stroitel-ny-mat-268' or pp.id_pavilion='stroitel-ny-mat-268' or pp.slug='stroitel-ny-mat-268') AND t.value_def='true' order by bstat.stat1_real DESC limit 5

ОШИБКА ВЫПОЛНЕНИЯ ЗАПРОСА