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 (13988,17527,8753,44671,44674,43800,5388,44765,17839,6862,14402,45421,44711,44866,17981,39676,44531,4686,44835,44766,24412,5259,18237,17237,18286,18279,44848,13,45518,45072,30135,13922,44863,31354,45516,34194,24441,44669,45561,44836,45515,10402,45051,36472,5410,45043,18981,44845,45177,17092,45180,44868,18042,44849,44853,6875,22509,44851,44861,44873,18301,18430,44640,18652,18894,13425,19078,44869,17114,17556)
Unknown column 'np.person' in 'where clause'