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 (18572,44854,3,18353,43800,45043,17351,44868,14622,44873,19057,44765,17755,44848,45180,5388,45051,45567,5410,45072,6782,13988,44894,44836,44835,17657,36472,16885,18648,18286,18900,44671,8753,44853,4686,45229,17848,44775,24438,37267,17527,44767,44764,17703,13,18172,17756,18652,22509,44861,44768,17771,4765,18427,17335,44863,45518,45516,44762,17237,18042,17009,18185,39676,10402,44689,44674,45517,44845,24441)
Unknown column 'np.person' in 'where clause'