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 (44775,5410,44884,6609,45421,18996,45286,17755,44851,8753,17835,45042,45229,24441,37057,44868,45180,6782,44854,13988,18286,17237,10402,18719,18185,44867,17092,44875,37267,44766,18430,18688,5259,17335,18900,44849,45516,44863,13922,43800,31354,44739,45043,44687,19057,13,18279,44689,45277,6862,18446,30986,44531,44762,17904,45515,30135,24438,17114,44835,17601,17009,3883,44858,36472,17756,18648,5993,16935,44856)
Unknown column 'np.person' in 'where clause'