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 (17601,45262,18172,28530,44767,14402,17237,44855,24441,13,31354,44837,39676,44669,17835,44764,17556,44873,4686,17848,14622,17009,44640,45042,44867,13425,18301,18996,18042,44878,18650,17755,44845,18572,18894,19057,36472,44685,17351,44674,28313,45180,44766,44894,17114,44858,44687,16885,18900,45051,18688,44848,17981,44866,45421,18719,17839,5259,45177,24411,30963,44851,45229,44849,45043,45517,44856,5410,18446,34194)
Unknown column 'np.person' in 'where clause'