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 (45518,45072,44861,17981,44765,44845,19057,43800,24438,4686,45561,18572,44873,10402,17771,45567,5993,17351,6862,45177,19078,44689,5388,6609,36472,30135,30963,18894,17237,18427,44836,18237,13,17657,13425,44863,45180,17904,44868,45421,18301,44855,4765,44768,17601,45043,44766,44869,44878,16885,17839,44867,44674,3,44894,30986,44854,24441,18981,18042,18900,17114,6782,37267,17335,44856,18648,22509,14622,44870)
Unknown column 'np.person' in 'where clause'