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 (45561,18981,45567,44711,45286,18427,44868,3883,17492,44685,30135,44873,44767,44768,4686,5388,44739,17278,44851,24412,30986,45277,45262,44766,17335,45177,45515,45072,17756,13,44869,44775,44640,44764,18648,44854,19057,32454,9341,44894,45180,44837,17351,5259,45043,36472,18172,17848,18446,44865,17703,6862,18900,18719,18894,44870,18185,34194,18301,17556,45517,17601,3,22509,44861,44674,45518,19078,44848,17839)
Unknown column 'np.person' in 'where clause'