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 (18650,9341,44837,17009,44861,45518,39676,19078,44711,13425,16935,6875,44671,18172,45286,5388,45517,45277,18688,44854,18185,45515,17492,32454,44775,44836,44851,44762,18996,44745,17335,28313,37057,44845,30963,18719,44848,18794,45262,13988,17771,45346,44849,17755,8753,36472,45072,44768,18446,17904,17703,14622,17981,6609,44865,4686,45567,37267,44765,45043,5410,18430,17114,45042,44867,18900,45516,13922,30135,17756)
Unknown column 'np.person' in 'where clause'