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 (4765,45517,18237,44894,44689,44873,13,16935,44640,34194,17335,45177,17492,44745,30986,10402,44854,18900,45421,45262,44711,44669,45180,45346,44531,45516,3883,17703,18279,18353,37267,44845,17839,18648,44878,44884,44875,28313,44856,45561,18172,18185,18996,44671,18688,6862,44870,44739,44764,44855,17237,18794,45229,24438,18894,13425,8753,44835,22509,44863,6609,17114,44767,37057,17981,44869,24441,44849,45043,17835)
Unknown column 'np.person' in 'where clause'