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 (18894,24411,18981,28313,28530,45277,17703,22509,44765,45180,18430,5410,45517,17755,4765,45051,6609,44854,44868,9341,17114,17556,44687,44685,44867,44856,31354,44669,5388,44849,45177,18286,44869,17601,44884,45262,44775,13922,6782,30135,45561,39676,18427,44837,45042,44875,14622,13425,17237,18172,45515,18446,17981,17839,6875,45286,16885,8753,44894,17848,44853,18279,30986,45567,24441,13,44835,18900,17904,44768)
Unknown column 'np.person' in 'where clause'