A PHP Error was encountered

Severity: Notice

Message: Undefined index: cat

Filename: controllers/Front.php

Line Number: 296

Backtrace:

File: /home/sgnetwork/public_html/dulhaniyaa.com/application/controllers/Front.php
Line: 296
Function: _error_handler

File: /home/sgnetwork/public_html/dulhaniyaa.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: cat

Filename: controllers/Front.php

Line Number: 297

Backtrace:

File: /home/sgnetwork/public_html/dulhaniyaa.com/application/controllers/Front.php
Line: 297
Function: _error_handler

File: /home/sgnetwork/public_html/dulhaniyaa.com/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/sgnetwork/public_html/dulhaniyaa.com/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/sgnetwork/public_html/dulhaniyaa.com/application/models/Home_model.php
Line: 113
Function: query

File: /home/sgnetwork/public_html/dulhaniyaa.com/application/controllers/Front.php
Line: 297
Function: get_grid_data

File: /home/sgnetwork/public_html/dulhaniyaa.com/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 p.pg_id = '1' and v.status = 'P'' at line 1

SELECT * from dy_vendor v join dy_portfolio p on v.vendor_id = p.vendor_id join dy_vendor_basic vb on v.vendor_id = vb.vendor_id join dy_maincat m on v.cat_id = m.cat_id join dy_state s on v.state_id = s.state_id join dy_vendor_portfolio vp on p.p_id = vp.p_id where v.cat_id = and p.pg_id = '1' and v.status = 'P'

Filename: models/Home_model.php

Line Number: 113