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 (45517,44863,17703,10402,44671,17771,17756,18446,45516,45421,17527,45262,44875,30963,3,45229,44865,17237,44689,17335,44765,5993,24412,44674,18301,18719,17278,5388,30986,14622,45518,43800,37267,39676,44851,4765,45180,24438,44531,24441,6782,44867,13988,5410,44861,6875,44868,44854,18430,18650,17904,44687,44866,44855,17092,19078,45277,17351,18794,28530,44848,45042,36472,24411,16935,44870,17981,9341,45286,17114)
Unknown column 'np.person' in 'where clause'