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 (17848,36472,44861,44689,44674,9341,3883,44767,17009,39676,24411,44853,44856,17657,30963,45262,17278,13425,17527,17755,44765,14402,17835,45229,6875,8753,18719,6862,4765,44768,44866,44835,24438,18688,44848,30986,44764,44869,28530,44711,24412,17601,17981,17237,44855,44863,17839,18430,18427,17335,17492,44868,44884,14622,44762,13,45518,18652,44865,44849,18042,45286,18996,32454,45051,45517,3,17114,17904,18172)
Unknown column 'np.person' in 'where clause'