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 (24412,18279,44894,18353,45072,44868,30963,18652,13,14402,44837,18446,18894,44674,34194,45262,44689,44685,13988,24441,44745,14622,24438,30135,45346,17237,3,17703,17556,18648,10402,44878,44764,45517,43800,18688,16935,45515,17335,44765,44849,36472,44835,17114,45561,44858,17835,44869,3883,44768,45286,45042,45277,13425,6609,18172,18981,5259,6782,45567,18430,19057,30986,18042,44711,18900,44669,44853,44856,44873)
Unknown column 'np.person' in 'where clause'