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 (31354,44854,44762,17114,18286,45262,13425,45229,44531,45043,44764,44671,17492,45567,44853,17657,44894,17771,17904,17756,44766,44851,43800,44866,44856,37057,5993,45517,4765,44768,44863,44640,18648,17839,14402,44845,18650,6862,18185,18794,45177,44765,44865,18427,18981,44858,18996,45277,18430,44739,34194,13,8753,45042,30135,17092,18688,17755,44836,9341,18900,44745,44867,13988,5410,17835,44875,6609,3,24411)
Unknown column 'np.person' in 'where clause'