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 (28313,44849,18427,18301,44853,44861,44640,44894,17092,44669,44884,18172,44765,45516,44687,45421,4765,24412,45051,44856,6782,30963,32454,14402,45072,13922,45042,3883,45177,6609,44854,31354,22509,19078,19057,10402,17237,44865,44671,16885,17657,9341,45277,18572,44845,34194,17009,44766,18430,44851,44764,17556,6862,45043,18652,44875,13,17981,44878,45262,45567,13425,17835,17527,14622,17839,44863,44674,44867,17492)
Unknown column 'np.person' in 'where clause'