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 (37057,17335,44866,17904,44767,44837,45043,45516,45515,30135,19057,10402,18652,44671,13988,44858,13425,18353,17492,18719,44674,45177,17114,19078,45286,17351,18237,44894,18996,18648,13,18279,3,31354,44762,45517,45072,44878,44845,44689,44711,5993,43800,17278,5259,44867,45567,18185,22509,44765,30963,18172,18430,44868,44863,18794,44856,14622,17601,18572,37267,17092,45051,44836,24412,44685,44861,8753,9341,4686)
Unknown column 'np.person' in 'where clause'