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 (44689,17756,44870,17703,44837,18996,44894,44884,17556,18981,45043,19078,5993,17839,17981,18286,45051,44854,45421,43800,17278,17835,44739,24412,30963,5388,44868,44531,44764,17237,44669,18719,44867,44848,17114,14402,44845,44869,45517,6862,17848,17904,13425,44878,44863,32454,18652,39676,45180,17755,19057,44767,31354,28530,4765,3,45561,18688,18172,30135,45262,44766,44851,44762,24438,45516,18648,17092,44855,17351)
Unknown column 'np.person' in 'where clause'