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 (18286,17756,45516,17351,17601,17657,17556,30135,45346,44855,18719,18650,14622,10402,45229,44674,24438,24411,44762,3883,18446,44866,18648,30963,45286,5259,31354,44875,17835,44878,17755,18572,4765,17278,18237,36472,17703,17839,44767,17335,45177,6782,45072,13922,19057,17092,18652,44775,44868,17771,28313,8753,44867,45180,37057,44870,45043,44853,44863,5410,44640,17981,24441,18430,45517,18172,44766,6609,30986,44884)
Unknown column 'np.person' in 'where clause'