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 (18894,18353,44739,18688,44845,31354,44762,17335,17703,44870,45286,45051,45229,44873,45516,44894,10402,17237,44837,44851,17981,44671,44764,17657,24438,18996,17904,44768,44884,44689,44849,3,5993,45180,18794,37267,17009,17092,9341,13988,17771,14622,18237,45421,6609,17835,4686,44868,37057,44767,24411,44835,44858,44863,44674,43800,45262,24441,44878,6875,30986,18981,44855,18301,18446,16935,19078,18652,17839,36472)
Unknown column 'np.person' in 'where clause'