SQL QUERY: SELECT ismenu, id_parent FROM at_pages WHERE id_page=mainpage
REASON: Unknown column 'mainpage' in 'where clause' 

SQL QUERY: SELECT ismenu, id_parent FROM at_pages WHERE id_page=mainpage
REASON: Unknown column 'mainpage' in 'where clause' 

SQL QUERY: select pt.* from at_place_texts pt left join at_place_link pl on pt.id_place_text = pl.id_place_text where pt.id_place = 1 and (pl.id_page = mainpage or pt.allpages = 1) and pt.visible = 1 order by pt.sort_order
REASON: Unknown column 'mainpage' in 'where clause' 

SQL QUERY: select pt.* from at_place_texts pt left join at_place_link pl on pt.id_place_text = pl.id_place_text where pt.id_place = 2 and (pl.id_page = mainpage or pt.allpages = 1) and pt.visible = 1 order by pt.sort_order
REASON: Unknown column 'mainpage' in 'where clause' 

SQL QUERY: select pt.* from at_place_texts pt left join at_place_link pl on pt.id_place_text = pl.id_place_text where pt.id_place = 4 and (pl.id_page = mainpage or pt.allpages = 1) and pt.visible = 1 order by pt.sort_order
REASON: Unknown column 'mainpage' in 'where clause' 

SQL QUERY: select pt.* from at_place_texts pt left join at_place_link pl on pt.id_place_text = pl.id_place_text where pt.id_place = 3 and (pl.id_page = mainpage or pt.allpages = 1) and pt.visible = 1 order by pt.sort_order
REASON: Unknown column 'mainpage' in 'where clause' 

SQL QUERY: select pt.* from at_place_texts pt left join at_place_link pl on pt.id_place_text = pl.id_place_text where pt.id_place = 9 and (pl.id_page = mainpage or pt.allpages = 1) and pt.visible = 1 order by pt.sort_order
REASON: Unknown column 'mainpage' in 'where clause'