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 (44767,4765,43800,45262,44768,6862,45515,18981,18996,10402,5259,36472,44836,18279,18719,44835,13988,13425,17335,17848,18237,13922,6875,45229,45277,45518,19057,44867,16885,16935,19078,44845,45072,44855,22509,17278,18794,45043,30963,45561,45177,17556,17756,3,44894,17703,18301,17981,44878,13,5410,45180,17092,44851,17114,3883,17839,14402,45567,44866,5993,17009,17904,8753,44848,18427,34194,44856,44766,45516)
Unknown column 'np.person' in 'where clause'