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 (18172,36472,44765,17092,34194,37267,4765,44867,45277,22509,10402,44775,18981,44745,43800,45421,17657,44674,9341,17009,8753,18279,44884,18996,24441,45346,44849,44878,44870,44711,18042,18650,18427,44856,45262,45043,17981,44894,4686,18430,5993,14622,44762,19057,45515,39676,6862,17527,44875,44764,44854,17755,24411,18286,44739,44853,30135,28313,17771,17114,44640,44858,17601,45229,13,24412,37057,45051,45072,18446)
Unknown column 'np.person' in 'where clause'