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 (24438,3,45229,44685,18446,44745,18652,39676,45277,17904,5259,18650,14402,18648,44870,32454,17009,17556,45262,18185,16935,24412,44671,44768,44863,17092,13922,45051,45180,17351,30986,37057,17335,5993,45043,17981,44669,5388,17114,22509,44640,17703,17839,44894,36472,45177,18572,30963,44853,13,18688,13425,18430,37267,44848,14622,18353,4686,18427,17657,45346,44687,44884,31354,13988,44861,5410,10402,44767,44835)
Unknown column 'np.person' in 'where clause'