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 (18652,30986,17527,6609,5410,39676,17904,6862,18286,28530,44765,44849,3883,44851,45277,17351,34194,13425,14622,18900,16935,45180,45051,18430,17839,45262,13922,44640,8753,44858,44848,44869,44845,6782,36472,44873,44884,44689,44766,44711,44685,17771,17092,44739,5259,30963,44669,45561,18996,28313,44767,18650,10402,45515,3,45177,24411,16885,44861,18301,44878,44853,44671,17756,45042,37057,45043,24441,44870,43800)
Unknown column 'np.person' in 'where clause'