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,13425,4765,19057,45517,8753,45043,44884,17835,45051,45515,9341,44894,44768,44863,37057,24412,34194,37267,18172,17601,44835,22509,17114,3883,6875,45262,14622,44531,18446,44836,44848,17904,13,17092,19078,44851,45177,18279,18981,45042,17351,17556,4686,45346,44855,28530,18427,5410,17237,44878,17771,44764,44853,45518,44762,18301,45286,44856,44867,5993,16885,18042,44870,17703,18572,44689,17335,18353,36472)
Unknown column 'np.person' in 'where clause'