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,44835,5410,24441,32454,44531,18688,16935,44768,44674,36472,44845,34194,44867,18301,4765,17351,18185,28313,18172,44865,17114,17904,37057,44878,16885,14622,44766,44873,18572,45518,24412,17657,45516,18279,17755,18353,44711,30963,44853,45346,17981,44875,18794,10402,17839,17771,18981,44764,45262,28530,39676,6862,44848,9341,44870,5993,45517,44856,13,3883,18652,6875,17848,44836,45051,45043,3,45567,13988)
Unknown column 'np.person' in 'where clause'