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 (45043,18900,17009,8753,9341,30963,6782,18042,18981,44531,45286,18996,44640,13425,44766,4686,4765,44858,13922,16935,45051,43800,18652,13,45180,45042,18430,10402,44866,18301,37057,17981,24412,45177,45567,13988,32454,44867,16885,5388,17492,18894,45262,34194,18648,44669,19078,17703,44875,44775,44687,45518,17335,45421,44674,17904,44856,18237,30135,17848,28313,44765,5410,45277,17839,44845,44878,5993,45517,18353)
Unknown column 'np.person' in 'where clause'