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 (14622,31354,18650,17527,28313,44875,45518,45567,44775,18446,17835,17335,17981,18794,18279,44687,18894,44884,18042,8753,44845,44854,18688,18427,24438,30963,19057,4765,44767,13,44689,36472,44531,24411,16885,17114,44866,18301,10402,17848,43800,45517,18981,18719,17839,44873,5410,17092,17278,5259,45051,44836,45421,44868,44848,44856,18996,18572,16935,44765,6782,39676,3,44863,44869,45180,45072,44671,18185,44768)
Unknown column 'np.person' in 'where clause'