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 (13425,3,17904,6609,18794,18719,44865,44689,45561,5993,44671,24438,45567,45286,19078,45515,34194,17771,44875,44836,18279,3883,44858,44762,18648,17756,44873,36472,45177,10402,17092,44745,24412,44711,30135,44669,37267,17278,17981,44855,18353,45516,44856,44849,32454,45043,18185,17335,44767,5410,18894,44851,22509,17009,39676,44848,18172,44687,44867,44685,44866,44845,45072,6782,18688,17835,17703,18652,44837,17755)
Unknown column 'np.person' in 'where clause'