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 (3883,18286,18430,17114,18237,22509,14622,45277,10402,45051,19057,17351,17009,44867,44739,32454,44768,44767,44870,44845,16885,18648,44863,24412,18688,44640,17237,39676,16935,44865,30963,45177,45517,17335,34194,44745,24441,30986,44849,6609,44894,45043,44884,44711,17657,44853,44669,45346,18981,18185,4765,44764,44671,18794,45229,44866,17278,44687,24438,37267,18572,44856,17601,18279,18301,44868,31354,44531,28313,17556)
Unknown column 'np.person' in 'where clause'