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 (45421,17237,44845,44775,17756,5259,24441,10402,13988,44856,18185,24411,45561,44869,18981,8753,18042,18172,17703,5993,44858,44873,17009,44711,45516,18572,45229,45567,18719,17839,14622,44894,17492,16885,30135,45043,9341,36472,44671,17771,45346,28530,44837,44766,16935,5410,44854,44768,44868,13425,44875,18286,44870,18652,19057,45262,44531,17092,18996,45042,18237,6782,17114,6862,44689,44867,45180,17848,37057,3883)
Unknown column 'np.person' in 'where clause'