A PHP Error was encountered

Severity: Notice

Message: Undefined variable: subcasted

Filename: controllers/Search_c.php

Line Number: 1712

Backtrace:

File: /home/vmmaker/public_html/frontend/controllers/Search_c.php
Line: 1712
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: 30
Function: get

File: /home/vmmaker/public_html/frontend/controllers/Search_c.php
Line: 1736
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` = 1) and `register`.`IsActive` = 1 ORDER BY `register`.`RID` DESC' at line 4

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`, `register`.`WLCountry`, `register`.`WLState`, `register`.`WLCity`, `userphotos`.`IsprofilePic` FROM `register` LEFT JOIN `userphotos` ON `register`.`RID` = `userphotos`.`RID` and `userphotos`.`IsprofilePic`=1 WHERE and (`Gender` = 1) and `register`.`IsActive` = 1 ORDER BY `register`.`RID` DESC

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

Line Number: 30