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 (24411,36472,18279,44865,44689,45421,3883,18794,17278,17335,44863,18688,44837,34194,9341,17351,18172,18353,5410,45277,44762,16935,44858,45180,44868,44870,13922,17114,18430,45042,18652,24441,44674,5993,44875,44855,18894,37057,44775,18301,28313,44867,44851,45262,45515,24438,17755,44640,17756,17009,44873,18427,44884,37267,45567,16885,31354,6875,18572,44767,44866,6862,6609,22509,44835,18719,28530,17237,44768,17839)
Unknown column 'np.person' in 'where clause'