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 = 133 OR site_master_template.duplicate_product_id LIKE '%,133-%') 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 ('299', '300', '301', '302', '303', '304', '305', '306', '308', '312', '310', '1596', '313', '309', '311', '314', '316', '315', '317', '318', '319', '323', '322', '321', '320', '325', '324', '326') OR site_master_template.duplicate_product_id LIKE '%-299,%' OR site_master_template.duplicate_product_id LIKE '%-300,%' OR site_master_template.duplicate_product_id LIKE '%-301,%' OR site_master_template.duplicate_product_id LIKE '%-302,%' OR site_master_template.duplicate_product_id LIKE '%-303,%' OR site_master_template.duplicate_product_id LIKE '%-304,%' OR site_master_template.duplicate_product_id LIKE '%-305,%' OR site_master_template.duplicate_product_id LIKE '%-306,%' OR site_master_template.duplicate_product_id LIKE '%-308,%' OR site_master_template.duplicate_product_id LIKE '%-312,%' OR site_master_template.duplicate_product_id LIKE '%-310,%' OR site_master_template.duplicate_product_id LIKE '%-1596,%' OR site_master_template.duplicate_product_id LIKE '%-313,%' OR site_master_template.duplicate_product_id LIKE '%-309,%' OR site_master_template.duplicate_product_id LIKE '%-311,%' OR site_master_template.duplicate_product_id LIKE '%-314,%' OR site_master_template.duplicate_product_id LIKE '%-316,%' OR site_master_template.duplicate_product_id LIKE '%-315,%' OR site_master_template.duplicate_product_id LIKE '%-317,%' OR site_master_template.duplicate_product_id LIKE '%-318,%' OR site_master_template.duplicate_product_id LIKE '%-319,%' OR site_master_template.duplicate_product_id LIKE '%-323,%' OR site_master_template.duplicate_product_id LIKE '%-322,%' OR site_master_template.duplicate_product_id LIKE '%-321,%' OR site_master_template.duplicate_product_id LIKE '%-320,%' OR site_master_template.duplicate_product_id LIKE '%-325,%' OR site_master_template.duplicate_product_id LIKE '%-324,%' OR site_master_template.duplicate_product_id LIKE '%-326,%') 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_210478950420241203114325))) 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, :input_59, :input_60, :input_61, :input_62, :input_63) 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 OR site_master_template.duplicate_product_id LIKE :smt_product_id24 OR site_master_template.duplicate_product_id LIKE :smt_product_id25 OR site_master_template.duplicate_product_id LIKE :smt_product_id26 OR site_master_template.duplicate_product_id LIKE :smt_product_id27 OR site_master_template.duplicate_product_id LIKE :smt_product_id28) 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] => 133
    [:smt_dup_product_id] => %,133-%
    [:user_ids_210478950420241203114325] => 
    [:smt_product_id1] => %-299,%
    [:smt_product_id2] => %-300,%
    [:smt_product_id3] => %-301,%
    [:smt_product_id4] => %-302,%
    [:smt_product_id5] => %-303,%
    [:smt_product_id6] => %-304,%
    [:smt_product_id7] => %-305,%
    [:smt_product_id8] => %-306,%
    [:smt_product_id9] => %-308,%
    [:smt_product_id10] => %-312,%
    [:smt_product_id11] => %-310,%
    [:smt_product_id12] => %-1596,%
    [:smt_product_id13] => %-313,%
    [:smt_product_id14] => %-309,%
    [:smt_product_id15] => %-311,%
    [:smt_product_id16] => %-314,%
    [:smt_product_id17] => %-316,%
    [:smt_product_id18] => %-315,%
    [:smt_product_id19] => %-317,%
    [:smt_product_id20] => %-318,%
    [:smt_product_id21] => %-319,%
    [:smt_product_id22] => %-323,%
    [:smt_product_id23] => %-322,%
    [:smt_product_id24] => %-321,%
    [:smt_product_id25] => %-320,%
    [:smt_product_id26] => %-325,%
    [:smt_product_id27] => %-324,%
    [:smt_product_id28] => %-326,%
    [:site_master_template_template_language_ids] => 1
    [:input_34] => 0
    [:input_35] => 1
    [:input_36] => 299
    [:input_37] => 300
    [:input_38] => 301
    [:input_39] => 302
    [:input_40] => 303
    [:input_41] => 304
    [:input_42] => 305
    [:input_43] => 306
    [:input_44] => 308
    [:input_45] => 312
    [:input_46] => 310
    [:input_47] => 1596
    [:input_48] => 313
    [:input_49] => 309
    [:input_50] => 311
    [:input_51] => 314
    [:input_52] => 316
    [:input_53] => 315
    [:input_54] => 317
    [:input_55] => 318
    [:input_56] => 319
    [:input_57] => 323
    [:input_58] => 322
    [:input_59] => 321
    [:input_60] => 320
    [:input_61] => 325
    [:input_62] => 324
    [:input_63] => 326
)
Show More...