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 (45072,3,39676,30963,44853,44767,18430,17492,45277,18286,18301,5993,44869,44858,44674,44854,24441,18719,45516,17835,32454,5410,18652,45042,17756,17114,5388,3883,31354,18996,44875,17527,44768,44849,44867,6609,18650,37267,44835,28530,10402,17237,16885,6875,44878,44845,45346,18900,44764,17771,18042,4686,45177,44687,13425,45180,17335,18981,36472,45421,18172,22509,44685,9341,13988,24412,44873,30986,44531,45229)
Unknown column 'np.person' in 'where clause'