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 (44856,24411,24412,18353,44855,4765,44687,30135,45277,44764,44674,45043,44894,18572,18996,44775,44866,44685,45346,14402,44854,45177,44640,18286,17114,17703,18185,44762,18648,10402,14622,45516,44669,44835,45042,45561,44878,44851,18301,6875,17755,30986,18981,43800,44863,18719,6609,44767,6782,13425,17237,17335,45180,44869,17835,19057,44837,17657,32454,30963,37057,18427,5259,17601,31354,17756,17278,17981,44870,44768)
Unknown column 'np.person' in 'where clause'