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 (44711,17981,19078,34194,17556,18650,18794,44867,45518,18301,44745,44854,37057,44868,17527,22509,16885,18652,45042,30963,17278,44775,45262,45043,18185,18446,17904,45515,18430,44764,19057,17009,17848,18427,4765,44875,44884,5388,44671,45229,45567,5410,24412,44851,44894,17114,44767,18900,44685,3,44869,18894,44866,44531,45286,17703,17839,36472,44640,44689,14402,17755,37267,45517,44848,18172,44836,44837,44835,44873)
Unknown column 'np.person' in 'where clause'