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 (44875,17703,13922,17527,4765,44868,17114,45561,24411,18996,44853,18652,18237,37267,44849,13988,44866,16885,45177,44674,18648,45051,18286,45042,17771,17278,44869,44851,45180,28313,44865,5410,44867,18900,17237,18794,44671,18042,44836,44884,19057,18185,22509,45043,17904,44766,44767,17835,17092,17839,44845,44687,44870,43800,4686,45346,45517,45229,44745,45277,44894,17492,44689,44835,18650,17848,44762,44863,17009,45421)
Unknown column 'np.person' in 'where clause'