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 (17092,22509,45286,18650,18652,18279,45518,14622,17703,18430,6862,9341,17527,45177,6875,5993,44853,17771,44861,44869,44764,44762,3883,37267,45262,44687,44863,44870,14402,44848,44868,6609,28530,17601,44875,44640,5259,44866,44851,45517,5388,45180,44765,18301,4686,18981,30135,17351,3,44768,44884,44671,45515,18237,45567,44878,44855,18286,24412,44836,45229,44711,6782,5410,17755,44865,45561,17009,37057,17335)
Unknown column 'np.person' in 'where clause'