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 (10402,44640,45518,4686,18996,17835,44867,44765,17657,18042,5259,13425,17703,18981,3883,14402,18894,45229,19057,17278,17335,17092,17839,44878,44745,31354,45051,9341,44869,16885,39676,34194,37267,45262,3,18446,17114,5388,24412,18652,18648,44768,44851,44674,13922,18650,44866,18572,18237,44853,17904,13988,37057,45346,18427,14622,6609,44687,44865,17771,44873,19078,44711,44849,44835,44868,44671,44766,18430,45421)
Unknown column 'np.person' in 'where clause'