Warning: Trying to access array offset on value of type null in C:\Apache24\htdocs\assets\routes-old\get_profile.php on line 4

Warning: Trying to access array offset on value of type null in C:\Apache24\htdocs\assets\routes-old\get_profile.php on line 5

Warning: Trying to access array offset on value of type null in C:\Apache24\htdocs\assets\routes-old\get_profile.php on line 6

Warning: Trying to access array offset on value of type null in C:\Apache24\htdocs\assets\routes-old\get_profile.php on line 7

Warning: Trying to access array offset on value of type null in C:\Apache24\htdocs\assets\routes-old\get_profile.php on line 8

Warning: Trying to access array offset on value of type null in C:\Apache24\htdocs\assets\routes-old\get_profile.php on line 9
[{"Message":"Error found...","error":{},"profileid":null,"sql_":"select r.posts,r.comments,r.id as ranch_id,0 as page_id,a.first_name,a.last_name,r.email,ranch_name as ranch_name,r.public_email,r.public_address,r.public_city,r.public_state,r.public_zip,\r\n r.public_phone,r.public_website,r.profile_pic,r.profile_background,r.bio,r.page_count,r.date_added,r.account_followers,r.account_following,r.address,r.city,r.state,r.zip,r.likes,\r\n r.email,r.address,r.city,r.state,r.zip,r.phone,r.website,r.user_id,r.phone, r.email, r.entity_type,\r\n a.profile_pic as profile_pic_account,'' as category,'' as sub_category,'' as sub_category_one,'' as sub_category_two ,0 as page_price,'person' as type, \r\n r.page_count as account_pages,established,join_code,\r\n concat(r.first_name_owner,' ',r.last_name_owner) as owner,r.for_sale,r.sold,r.country,\r\n ( 3959 * acos( \r\n * \r\n z.cos_rad_lat * \r\n cos( z.rad_lng - ) + \r\n * \r\n z.sin_rad_lat \r\n ) ) as distance,\r\n (select case when (max(id)) > 0 then 1 else 0 end from follow_data fd where fd.user_id = '' and fd.ranch_following = '' and fd.user_type = 'person' and page_following = 0 ) as is_following,\r\n (select case when (max(id)) > 0 then 'On' else '' end from follow_data fd where fd.user_id = '' and fd.ranch_following = '' and fd.user_type = 'person' and notifications = 'On' and page_following = 0) as notifications,\r\n (select case when (max(id)) > 0 then max(id) else 0 end from follow_data fi where fi.user_id = '' and fi.ranch_following = '' and fi.user_type = 'person' and page_following = 0) as follow_id \r\n from ranches r \r\n inner join accounts a on a.id = r.user_id\r\n left outer join zip_codes z on z.zip = r.zip \r\n where r.id = ''"}]