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,44531,44835,17848,44855,44851,18286,30986,17771,17492,44853,18981,44836,37267,10402,44765,44894,18648,9341,36472,45042,44848,18650,17657,16885,18279,44745,17756,17601,18688,6782,45517,3883,44711,13425,24412,18353,44767,45515,44775,44856,17009,17904,44739,17351,28530,44854,19078,6875,8753,31354,18794,39676,14622,32454,5410,17703,17237,18996,17092,30135,17114,18719,19057,17335,5388,44867,24441,44868,18572)
Unknown column 'np.person' in 'where clause'