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 (44873,4765,36472,24441,18794,18652,44865,44765,17835,44835,13425,44689,44531,44711,45421,37057,17114,44836,5388,44867,4686,17756,3,44878,45567,45262,9341,8753,44869,18427,44685,5259,18430,13988,44640,44766,5993,45277,24438,17009,18286,17335,6609,5410,10402,18353,45051,18719,17755,18279,37267,18981,45561,6875,13,22509,16935,19057,44858,45180,28313,39676,30986,30963,44861,44669,6782,44767,17527,44863)
Unknown column 'np.person' in 'where clause'