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 (17601,18279,44873,17981,18650,18286,44765,17756,17278,44687,30963,18172,44870,16935,17848,30986,18572,44851,18446,6862,10402,44849,22509,4686,16885,44856,44861,18648,17904,45229,17114,44884,14402,24441,17335,14622,18894,44836,17771,44640,30135,45518,19078,17839,44711,18301,18900,17755,45043,44848,5993,44867,28530,18430,44766,45180,36472,45042,17527,43800,13922,44768,44869,18042,5388,44775,45286,45515,3,44835)
Unknown column 'np.person' in 'where clause'