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 (17848,18286,18042,44853,44765,18430,44875,44856,44685,17771,45286,3883,36472,6875,44669,44767,14622,4765,44894,44837,44851,17009,18572,17335,44870,37267,17657,18981,24412,18279,44640,18794,13988,45277,13,44866,6862,39676,45516,5993,18172,44845,16935,28313,18719,30963,24441,44689,45515,44745,45042,30986,44711,45177,17835,18427,18353,17756,8753,18688,5388,44884,24438,45043,4686,18650,13425,44671,18894,45262)
Unknown column 'np.person' in 'where clause'