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 (17848,45561,18794,45177,44865,18719,44845,44869,44878,32454,18185,44766,18688,6609,16935,17351,18042,13988,17527,17755,5410,13,18430,44854,44858,45042,18648,31354,4765,17556,44894,45421,45346,10402,28530,17657,44884,44863,5259,18996,44689,18894,44870,18301,8753,45518,5993,43800,18650,18652,18237,44767,6875,18286,18353,18981,44765,44873,17835,24412,44768,19057,17601,45229,17839,18427,14402,28313,37057,45262)
Unknown column 'np.person' in 'where clause'