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 (24438,44766,44849,45517,45177,44851,45346,18648,9341,44845,44711,17657,4765,36472,44837,44640,44866,18427,30963,44848,44854,44669,13922,28313,17904,44894,17981,17114,22509,30986,6875,44689,19078,44878,19057,44855,44868,18981,44671,45515,30135,13425,45229,6609,44775,44884,45180,18172,44865,18996,31354,18185,18042,18719,18894,18301,44863,3883,4686,44764,17756,6862,17601,16885,17351,44765,18353,39676,24441,44687)
Unknown column 'np.person' in 'where clause'