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 (18353,45346,17092,45043,5993,44884,6609,37057,30986,44858,36472,44674,17556,44851,44865,45180,17981,44711,18042,14402,17904,17657,44869,44854,3883,18446,5410,44849,8753,18185,17492,9341,3,44531,4686,44687,44669,6875,45051,5388,44875,17335,44845,6782,45277,44671,19078,17755,28313,18648,18430,44739,16935,24441,18172,44861,44835,37267,45518,44766,45567,17839,14622,44745,44764,18652,45421,18894,17351,17527)
Unknown column 'np.person' in 'where clause'