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 (44884,45042,17848,44836,18794,18353,18719,44689,36472,45518,18172,17904,44848,17092,24441,45229,37267,18427,18446,3,14622,44768,45561,45072,44739,28530,45346,44861,44858,45517,24411,17771,32454,16885,24438,6862,44531,43800,17009,30986,45043,19057,9341,18237,17835,4765,44767,17351,18650,18996,44869,44711,18648,8753,28313,10402,5259,17755,44865,44863,17556,18572,18301,17527,44866,18652,45516,17237,45567,5993)
Unknown column 'np.person' in 'where clause'