Error in Query : SELECT mf.iFriendStatus as iFriendStatus, mf.dFriendAcceptDate as dFriendAcceptDate, m.MemberType as MemberType, m.MemberId as MemberId, m.MemberFirstName as MemberFirstName, m.MemberLastName as MemberLastName, m.MemberStatus as MemberStatus, m.MemberImage as MemberImage, m.MemberCity as MemberCity, m.MemberState as MemberState, m.MemberCountry as MemberCountry FROM member_friends mf, member m WHERE ( (((m.MemberType = 'Model' AND mf.eFriendMemberType2 = 'Model') OR (m.MemberType = 'Client' AND mf.eFriendMemberType2 = 'Client')) AND mf.iFriendMemberId2 = m.MemberId AND mf.iFriendMemberId1 = '4975' AND mf.eFriendMemberType1 = 'Model' && mf.iFriendStatus = '1') OR (((m.MemberType = 'Model' AND mf.eFriendMemberType1 = 'Model') OR (m.MemberType = 'Client' AND mf.eFriendMemberType1 = 'Client')) AND mf.iFriendMemberId1 = m.MemberId AND mf.iFriendMemberId2 = '4975' AND mf.eFriendMemberType2 = 'Model' && mf.iFriendStatus = '1') OR (((m.MemberType = 'Model' AND mf.eFriendMemberType1 = 'Model') OR (m.MemberType = 'Client' AND mf.eFriendMemberType1 = 'Client')) AND mf.iFriendMemberId1 = m.MemberId AND mf.iFriendMemberId2 = '4975' AND mf.eFriendMemberType2 = 'Model' && mf.iFriendStatus = '0') ) AND mf.iFriendStatus = '1' UNION SELECT nf.eFriendNetwork as iFriendStatus, nf.eFriendNetwork as dFriendAcceptDate, nf.eFriendNetwork as MemberType, nf.iNFriendId as MemberId, nf.vFriendFirstName as MemberFirstName, nf.vFriendLastName as MemberLastName, 'Active' as MemberStatus, nf.vFriendImageURL as MemberImage, '' as MemberCity, '' as MemberState, '' as MemberCountry FROM network_friends nf WHERE nf.iMemberId = '4975' AND nf.eMemberType = 'Model' order by dFriendAcceptDate DESC
0 :