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 (44873,44836,17601,39676,44861,18301,44853,24411,44863,19078,30986,45277,5410,5259,6782,44868,45346,45567,45051,18172,18894,44858,44865,18996,44854,44766,17092,44764,18900,45072,17848,18650,18719,17839,16935,6862,18430,44845,44878,44687,19057,14622,18572,45516,44867,18286,44884,5993,45177,44851,17904,13,17009,3883,44765,28313,17278,44531,24441,44866,44837,44711,4765,17755,17556,17114,45043,18688,44856,18185)
Unknown column 'np.person' in 'where clause'