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 (3883,17848,45051,5410,44875,18427,44765,18446,44873,44856,17703,17756,32454,44845,24411,45177,18652,45286,37267,44851,34194,17755,13988,6875,17237,30135,44689,44687,44848,44868,39676,24438,17904,45072,18996,44768,16935,5259,44762,17351,17092,18688,44835,18042,44869,18794,44669,44861,13425,44878,14622,14402,45567,44685,44836,44745,44863,44866,17657,43800,45180,17771,44853,44775,44855,45346,18572,18237,13922,17335)
Unknown column 'np.person' in 'where clause'