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 (28313,44849,3883,45421,18894,44856,17835,17755,13988,45229,18430,44836,44866,45042,17092,18301,44674,28530,44854,39676,44711,18572,44894,18688,6862,17114,44837,18719,24441,18652,4686,45051,18650,44689,45346,17492,17237,6609,18042,34194,30135,17771,17527,44762,43800,36472,18446,5993,45516,44861,18286,44853,44873,17839,45561,17601,44764,45517,44884,44766,45262,17278,44745,14402,30963,44869,44868,17703,3,17335)
Unknown column 'np.person' in 'where clause'