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 (6609,39676,18894,31354,45043,44531,45517,17556,18719,13,44765,18996,45286,5993,44849,17237,9341,37057,45567,8753,18650,17335,6875,17771,5410,24412,18572,17278,18648,17756,13922,44851,17703,44767,24411,37267,18042,44674,45346,44711,14622,45072,18688,18353,3883,45277,18794,45180,44669,44866,44836,44894,44878,18981,44687,18237,18446,18279,17601,44867,18172,44854,45262,18900,34194,45042,45229,45051,44865,24441)
Unknown column 'np.person' in 'where clause'