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 (44762,13988,44848,31354,44775,24441,45043,4686,5388,17981,18237,18894,17835,17771,44894,45346,5993,44867,36472,17703,18172,44845,6862,8753,18279,32454,19078,30135,18427,34194,18996,44855,45072,39676,24438,45051,30986,44531,17237,5259,18719,18185,45042,45567,44873,6782,45286,45516,17756,17657,5410,28530,45180,44837,44849,44854,22509,44640,16885,18650,17114,17755,44674,44766,24411,44765,45262,44669,44878,17904)
Unknown column 'np.person' in 'where clause'