Error

 
[Exception, 0] 
Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'site_master_template.products_id' in 'where clause' in /home/xumbaprinting/public_html/lib/Classes/Models/RMasterModel.php:89 Stack trace: #0 /home/xumbaprinting/public_html/model/TemplateMaster.php(650): RMasterModel->exec_query() #1 /home/xumbaprinting/public_html/templates/include/twig_functions.php(1702): TemplateMaster->get_template_details_filter() #2 /home/xumbaprinting/public_html/product_designs.php(114): getTemplateRecords() #3 {main}
@line 702 in file /home/xumbaprinting/public_html/lib/Classes/Models/RMasterModel.php

Debug Backtrace

#1 RMasterModel.php:91 -- RMasterModel->displayException()
#2 TemplateMaster.php:650 -- RMasterModel->exec_query()
#3 twig_functions.php:1702 -- TemplateMaster->get_template_details_filter()
#4 product_designs.php:114 -- getTemplateRecords()

Last Query :

SELECT SQL_CALC_FOUND_ROWS count(DISTINCT site_master_template.template_id) as site_total, 0 as 'master_total',site_master_template.template_language_ids,GROUP_CONCAT(site_master_template.color,'') as color,GROUP_CONCAT(DISTINCT site_master_template.orientation,'') as orientation FROM site_master_template LEFT JOIN site_master_template_description ON site_master_template_description.template_id = site_master_template.template_id AND ( site_master_template_description.site_language_id =1 OR site_master_template_description.site_language_id IS NULL) RIGHT JOIN products ON products.products_id=site_master_template.products_id LEFT JOIN product_category ON product_category.category_id=products.category_id WHERE site_master_template.status = '1' AND (site_master_template.products_id = 209 OR site_master_template.duplicate_product_id LIKE '%,209-%') AND ((site_master_template.user_type_id IN ('0', '1') AND (site_master_template.user_ids = ''))) AND ( site_master_template.studiodata !='') AND (site_master_template.size_id IN ('867', '884', '885', '886', '887', '876', '880', '882', '873', '881', '874', '877', '878', '888', '883', '875', '879', '889', '869', '868', '870', '871', '872') OR site_master_template.duplicate_product_id LIKE '%-867,%' OR site_master_template.duplicate_product_id LIKE '%-884,%' OR site_master_template.duplicate_product_id LIKE '%-885,%' OR site_master_template.duplicate_product_id LIKE '%-886,%' OR site_master_template.duplicate_product_id LIKE '%-887,%' OR site_master_template.duplicate_product_id LIKE '%-876,%' OR site_master_template.duplicate_product_id LIKE '%-880,%' OR site_master_template.duplicate_product_id LIKE '%-882,%' OR site_master_template.duplicate_product_id LIKE '%-873,%' OR site_master_template.duplicate_product_id LIKE '%-881,%' OR site_master_template.duplicate_product_id LIKE '%-874,%' OR site_master_template.duplicate_product_id LIKE '%-877,%' OR site_master_template.duplicate_product_id LIKE '%-878,%' OR site_master_template.duplicate_product_id LIKE '%-888,%' OR site_master_template.duplicate_product_id LIKE '%-883,%' OR site_master_template.duplicate_product_id LIKE '%-875,%' OR site_master_template.duplicate_product_id LIKE '%-879,%' OR site_master_template.duplicate_product_id LIKE '%-889,%' OR site_master_template.duplicate_product_id LIKE '%-869,%' OR site_master_template.duplicate_product_id LIKE '%-868,%' OR site_master_template.duplicate_product_id LIKE '%-870,%' OR site_master_template.duplicate_product_id LIKE '%-871,%' OR site_master_template.duplicate_product_id LIKE '%-872,%') AND (site_master_template.template_language_ids = '0' OR FIND_IN_SET('1',site_master_template.template_language_ids))

Prepared Statement :

SELECT SQL_CALC_FOUND_ROWS count(DISTINCT site_master_template.template_id) as site_total, 0 as 'master_total',site_master_template.template_language_ids,GROUP_CONCAT(site_master_template.color,'') as color,GROUP_CONCAT(DISTINCT site_master_template.orientation,'') as orientation FROM site_master_template LEFT JOIN site_master_template_description ON site_master_template_description.template_id = site_master_template.template_id AND ( site_master_template_description.site_language_id =:smtd_site_language_id OR site_master_template_description.site_language_id IS NULL) RIGHT JOIN products ON products.products_id=site_master_template.products_id LEFT JOIN product_category ON product_category.category_id=products.category_id WHERE site_master_template.status = :site_master_template_status AND (site_master_template.products_id = :smt_products_id OR site_master_template.duplicate_product_id LIKE :smt_dup_product_id) AND ((site_master_template.user_type_id IN (:input_34, :input_35) AND (site_master_template.user_ids = :user_ids_56861640620240919133626))) AND ( site_master_template.studiodata !='') AND (site_master_template.size_id IN (:input_36, :input_37, :input_38, :input_39, :input_40, :input_41, :input_42, :input_43, :input_44, :input_45, :input_46, :input_47, :input_48, :input_49, :input_50, :input_51, :input_52, :input_53, :input_54, :input_55, :input_56, :input_57, :input_58) OR site_master_template.duplicate_product_id LIKE :smt_product_id1 OR site_master_template.duplicate_product_id LIKE :smt_product_id2 OR site_master_template.duplicate_product_id LIKE :smt_product_id3 OR site_master_template.duplicate_product_id LIKE :smt_product_id4 OR site_master_template.duplicate_product_id LIKE :smt_product_id5 OR site_master_template.duplicate_product_id LIKE :smt_product_id6 OR site_master_template.duplicate_product_id LIKE :smt_product_id7 OR site_master_template.duplicate_product_id LIKE :smt_product_id8 OR site_master_template.duplicate_product_id LIKE :smt_product_id9 OR site_master_template.duplicate_product_id LIKE :smt_product_id10 OR site_master_template.duplicate_product_id LIKE :smt_product_id11 OR site_master_template.duplicate_product_id LIKE :smt_product_id12 OR site_master_template.duplicate_product_id LIKE :smt_product_id13 OR site_master_template.duplicate_product_id LIKE :smt_product_id14 OR site_master_template.duplicate_product_id LIKE :smt_product_id15 OR site_master_template.duplicate_product_id LIKE :smt_product_id16 OR site_master_template.duplicate_product_id LIKE :smt_product_id17 OR site_master_template.duplicate_product_id LIKE :smt_product_id18 OR site_master_template.duplicate_product_id LIKE :smt_product_id19 OR site_master_template.duplicate_product_id LIKE :smt_product_id20 OR site_master_template.duplicate_product_id LIKE :smt_product_id21 OR site_master_template.duplicate_product_id LIKE :smt_product_id22 OR site_master_template.duplicate_product_id LIKE :smt_product_id23) AND (site_master_template.template_language_ids = '0' OR FIND_IN_SET(:site_master_template_template_language_ids,site_master_template.template_language_ids))
Params: Array
(
    [:smtd_site_language_id] => 1
    [:site_master_template_status] => 1
    [:smt_products_id] => 209
    [:smt_dup_product_id] => %,209-%
    [:user_ids_56861640620240919133626] => 
    [:smt_product_id1] => %-867,%
    [:smt_product_id2] => %-884,%
    [:smt_product_id3] => %-885,%
    [:smt_product_id4] => %-886,%
    [:smt_product_id5] => %-887,%
    [:smt_product_id6] => %-876,%
    [:smt_product_id7] => %-880,%
    [:smt_product_id8] => %-882,%
    [:smt_product_id9] => %-873,%
    [:smt_product_id10] => %-881,%
    [:smt_product_id11] => %-874,%
    [:smt_product_id12] => %-877,%
    [:smt_product_id13] => %-878,%
    [:smt_product_id14] => %-888,%
    [:smt_product_id15] => %-883,%
    [:smt_product_id16] => %-875,%
    [:smt_product_id17] => %-879,%
    [:smt_product_id18] => %-889,%
    [:smt_product_id19] => %-869,%
    [:smt_product_id20] => %-868,%
    [:smt_product_id21] => %-870,%
    [:smt_product_id22] => %-871,%
    [:smt_product_id23] => %-872,%
    [:site_master_template_template_language_ids] => 1
    [:input_34] => 0
    [:input_35] => 1
    [:input_36] => 867
    [:input_37] => 884
    [:input_38] => 885
    [:input_39] => 886
    [:input_40] => 887
    [:input_41] => 876
    [:input_42] => 880
    [:input_43] => 882
    [:input_44] => 873
    [:input_45] => 881
    [:input_46] => 874
    [:input_47] => 877
    [:input_48] => 878
    [:input_49] => 888
    [:input_50] => 883
    [:input_51] => 875
    [:input_52] => 879
    [:input_53] => 889
    [:input_54] => 869
    [:input_55] => 868
    [:input_56] => 870
    [:input_57] => 871
    [:input_58] => 872
)
Show More...