Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (37267,17601,16935,44856,44764,17755,45517,17904,44836,45051,45567,18572,32454,45561,5410,18185,18279,44689,44768,45515,44867,18894,44837,44866,44863,44861,45518,45516,44765,17335,44873,18650,44869,18794,44878,17237,44669,17657,44687,18652,44884,18688,17009,44848,24441,17848,44762,17278,44640,45042,44868,44875,44745,44531,3883,3,44865,24412,44845,13,30135,43800,22509,14622,19078,5259,31354,44767,45277,45286)
Unknown column 'np.person' in 'where clause'