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 (18172,45043,16935,18719,45518,18286,44765,17335,44836,18279,44894,4686,17492,30986,37057,24411,18042,13425,16885,44849,44669,44856,17839,24441,44869,45180,45177,18900,45561,44764,45516,44674,44711,44875,44837,19057,45567,5993,18430,17756,44870,44851,6782,45051,39676,18981,5259,44873,44640,8753,44685,45515,36472,18996,18353,44845,44866,13,45262,17981,44867,6875,17755,30963,9341,17527,6862,44855,17835,45517)
Unknown column 'np.person' in 'where clause'