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 (44863,17756,44854,44739,6875,45042,30963,18353,19057,17657,13,30135,30986,17492,18430,18650,45177,18719,6782,44531,32454,18279,44873,37267,17904,44867,24412,17848,17278,44856,44865,24411,45072,24441,17527,44884,45561,45277,6609,44640,37057,18185,18427,22509,44878,31354,24438,16885,44851,45180,44674,44766,17703,19078,44849,44858,44870,17981,28313,45346,44685,45043,43800,44767,17237,45516,6862,9341,17009,17556)
Unknown column 'np.person' in 'where clause'