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 (18719,19078,44671,24411,17114,45515,44687,45516,45043,44739,44745,17278,18430,44674,44685,13922,18172,18446,44884,17556,44878,18237,17092,18894,17981,17839,24412,18688,45262,37267,17755,18996,16885,44768,19057,3,44854,17835,45177,3883,16935,17601,5410,28313,44848,18650,45567,14402,17335,39676,44767,44836,45561,18652,5993,18427,44855,45518,18648,17237,18286,4686,44775,18185,17904,45042,45277,44766,44851,13)
Unknown column 'np.person' in 'where clause'