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 (45180,17835,17601,32454,44845,45072,45346,44837,17839,45051,17335,17703,18279,45229,17657,43800,14402,18185,30135,44775,17755,45277,45042,44767,44745,44866,44884,4686,44849,18794,34194,44856,44873,18981,30986,22509,44851,44671,44531,24412,18648,45177,45561,17351,44674,17527,44669,17492,44878,45516,30963,5410,18172,13988,28530,44868,18042,24438,28313,44867,45567,18446,17556,44861,44875,45515,18652,44685,5388,18572)
Unknown column 'np.person' in 'where clause'