A PHP Error was encountered

Severity: Notice

Message: Undefined variable: p

Filename: controllers/Index.php

Line Number: 381

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 381
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 381

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 381
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 381

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 381
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 381

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 381
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 384

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 384
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 385

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 385
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: p

Filename: controllers/Index.php

Line Number: 386

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 386
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 386

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 386
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 388

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 388
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 430

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 430
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: p

Filename: controllers/Index.php

Line Number: 430

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 430
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Index.php

Line Number: 430

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 430
Function: _error_handler

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/jail/var/www/q4group/bakenshake/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/jail/var/www/q4group/bakenshake/application/models/Products_m.php
Line: 326
Function: query

File: /home/jail/var/www/q4group/bakenshake/application/controllers/Index.php
Line: 430
Function: get_all_related_products_list

File: /home/jail/var/www/q4group/bakenshake/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and t1.prod_id!= and ' at line 18

select t1.*, (select ifnull(sum(t4.prod_qty),0) as prod_cnt from trans_customer_order t4,master_customer_order t5 where t4.status=1 and t1.prod_id=t4.prod_id and t5.cust_cart_id=t4.cust_cart_id and t5.status=1 and t5.order_status=3) as prod_cnt, min(CAST(ifnull(t2.amount_panindia , 0) AS UNSIGNED)) as amount_panindia, min(CAST(ifnull(t2.amount , 0) AS UNSIGNED)) as amount, (select t3.uname from trans_prod_size t2,master_unit t3 where t2.status=1 and t2.prod_id=t1.prod_id and t3.status=1 and t3.display_status=1 and t2.uid=t3.uid order by CAST(ifnull(t2.amount , 0) AS UNSIGNED) asc limit 1) as uname, t6.sub_category_name, t6.sub_cat_key, t7.category_name, t7.cat_key from master_product t1 LEFT JOIN trans_prod_size t2 on (t2.status=1 and t2.prod_id=t1.prod_id), master_sub_category t6, master_category t7 where t1.display_product=1 and t1.status=1 and t1.sub_cat_id= and t1.prod_id!= and t6.sub_cat_id=t1.sub_cat_id and t6.cat_id=t7.cat_id and t6.display_status=1 and t6.status=1 and t7.display_status=1 and t7.status=1 group by t1.prod_id order by prod_cnt desc LIMIT 0,12

Filename: models/Products_m.php

Line Number: 326