Error
Error: E_USER_NOTICE
URL: http://halalzawaj.com/
File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/_include/lib/db_common.php
Line: 46
Message: Can't execute query: 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 ' 1, 0) +
IF(state_id = , 1, 0) +
' at line 1
SELECT *, IF(city_id = , 1, 0) +
IF(state_id = , 1, 0) +
IF(country_id = , 1, 0) AS near
FROM `user`
WHERE `is_photo` = "Y"
AND `hide_time` = 0
AND `set_who_view_profile` = "anyone"
ORDER BY near DESC, RAND()
LIMIT 7

Call stack:

File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/_include/lib/db_common.php (Line: 46)
Function: trigger_error

File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/_include/lib/db_mysqli.php (Line: 31)
Class: DB_Common
Function: triggerError

File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/_include/lib/db_common.php (Line: 135)
Class: DB
Function: driver_query

File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/_include/current/common.php (Line: 64)
Class: DB_Common
Function: query

File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/index.php (Line: 482)
Class: CHeader
Function: showMap

File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/_include/lib/block.php (Line: 195)
Class: CIndex
Function: parseBlock

File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/_include/core/main_close.php (Line: 19)
Class: CHtmlBlock
Function: parse

File: /hermes/bosnacweb01/bosnacweb01bh/b2702/ipg.halalzawaj1/halalzawaj.com-redirect/index.php (Line: 608)
Function: include