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 (45346,24441,44848,44674,18900,14622,45516,45517,18688,17335,44762,19078,17556,28530,44640,45518,17703,18794,13,17835,19057,44711,17601,9341,5388,18894,18185,45180,45515,45262,44884,10402,18427,17278,30135,17114,37057,8753,44894,45421,45229,13425,45043,18172,30963,30986,44765,5993,44739,17657,44669,45567,6782,44767,17527,17839,6609,44849,44856,34194,18996,45042,45277,44745,43800,28313,18301,17492,17981,44689)
Unknown column 'np.person' in 'where clause'