A PHP Error was encountered

Severity: Notice

Message: Undefined variable: subcasted

Filename: controllers/Search_c.php

Line Number: 1606

Backtrace:

File: /home/vmmaker/public_html/frontend/controllers/Search_c.php
Line: 1606
Function: _error_handler

File: /home/vmmaker/public_html/teli/index.php
Line: 295
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/vmmaker/public_html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/vmmaker/public_html/frontend/models/Search_m.php
Line: 28
Function: get

File: /home/vmmaker/public_html/frontend/controllers/Search_c.php
Line: 1630
Function: get_search_result_count

File: /home/vmmaker/public_html/teli/index.php
Line: 295
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 (`Gender` = 2) and `register`.`IsActive` = 1 ORDER BY `register`.`RID` DESC' at line 3

SELECT `register`.`RID`, `register`.`RegistrationID`, `register`.`Name`, `register`.`LastName`, `register`.`Gender`, `register`.`Age`, `register`.`Date`, `register`.`Height`, `register`.`Education`, `register`.`Occupation`, `register`.`Star`, `register`.`email`, `register`.`subcaste`, `register`.`CityID`, `register`.`CountryID`, `register`.`StateID` FROM `register` WHERE and (`Gender` = 2) and `register`.`IsActive` = 1 ORDER BY `register`.`RID` DESC

Filename: /home/vmmaker/public_html/frontend/models/Search_m.php

Line Number: 28