Error: E_USER_NOTICE
URL: http://www.datingsite.in/search_results.php?display=profile&name=abha&offset=1
File: /home/tommiko/public_html/datingsite.in/_include/lib/db5.php
Line: 134
Message: Can't execute query: Unknown column 'u.state_id' in 'field list'

			SELECT u.*, YEAR(FROM_DAYS(TO_DAYS('2017-06-25 17:11:59')-TO_DAYS(birth))) AS age,
			u.state AS state_title, u.country AS country_title, u.city AS city_title,
			IF(u.city_id=0, 1, 0) +
			IF(u.state_id=0, 1, 0) +
			IF(u.country_id=0, 1, 0) AS near

			FROM user AS u
			LEFT JOIN userinfo AS i ON u.user_id=i.user_id
		 WHERE 1   AND u.name='abha'  ORDER BY near DESC, user_id LIMIT 0,1;