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 (45277,17703,18446,45229,44640,6782,17756,17755,44878,18650,45517,45515,17278,45042,14622,44767,44671,18286,18237,17835,4765,45516,44845,32454,44866,18430,44884,24438,44687,39676,45072,18185,17335,17092,18894,17556,44856,44745,44851,44854,45567,44861,44762,3883,17981,17839,18042,16885,45051,10402,30135,18981,28530,5388,44669,17237,44858,34194,45177,16935,45421,19078,44711,30963,31354,44674,44865,44766,44765,44685)
Unknown column 'np.person' in 'where clause'