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 (17351,17335,44835,3883,30986,9341,18301,16885,10402,37267,34194,45051,18719,45229,44531,45517,44873,6782,5993,44866,44768,36472,44884,17114,44711,43800,18237,45518,28313,18446,24411,17527,13922,17904,44851,44669,44687,17756,44870,45561,5410,18172,44894,44855,44858,17278,45516,18648,44671,45346,44869,18688,17703,8753,17835,24438,44836,18353,17601,44764,18185,17237,31354,44867,5388,24441,44766,18042,45262,44863)
Unknown column 'np.person' in 'where clause'