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 (45515,30986,13988,28530,18572,8753,44835,45072,44685,18279,17771,44711,9341,45180,45229,17703,45043,18430,44848,44836,18301,10402,18185,44865,28313,36472,44894,44863,17237,17009,18719,44739,44765,44766,18996,17492,18286,44853,18650,34194,5388,5993,6782,44851,44854,45421,44873,44878,14402,13922,24412,17527,17756,4686,17335,45051,14622,5259,18446,18652,45561,44837,18688,45277,44845,44884,17848,6862,44858,17556)
Unknown column 'np.person' in 'where clause'