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 (45072,18446,44856,17848,45042,44853,18427,16885,18996,44671,4686,3883,17703,44873,24412,44866,18981,44894,44851,44768,17114,45515,18353,30986,44858,45051,44878,17657,44764,39676,36472,14622,13,5259,18894,44739,44711,5388,37267,44669,14402,18172,44765,45277,44767,34194,13425,18650,17835,17237,45286,44531,44884,30963,45180,45346,18648,19057,45177,17839,44640,18279,6862,43800,18185,17771,17092,44865,44875,9341)
Unknown column 'np.person' in 'where clause'