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 (45043,17835,45286,44768,17755,44848,17904,10402,44674,45517,18301,44851,18279,18688,18237,18353,3,18981,14402,13425,45421,5993,24412,44853,18185,28313,5259,45516,5388,17703,19057,44856,18286,36472,45180,17009,13922,44765,13,18430,18427,44875,44863,39676,44689,14622,44845,44836,3883,22509,44861,44858,44854,17278,44866,17237,18446,44711,45262,9341,18996,17351,17756,44865,45177,18900,44739,37267,44868,44849)
Unknown column 'np.person' in 'where clause'