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 (17278,44685,45043,18900,17703,44762,44875,18427,45229,30963,18996,18719,13,44884,17527,45518,44853,6875,17492,44870,34194,18446,37267,17009,18286,17237,17092,30135,18430,44866,17335,18237,6609,45180,44869,14402,30986,44687,5388,13425,10402,44739,45072,36472,44775,44894,19057,45286,18353,44851,18185,19078,17839,9341,6862,44669,18650,24412,45051,44863,17601,44854,45346,18894,3883,45516,28313,45561,13922,17904)
Unknown column 'np.person' in 'where clause'