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 (44762,17556,44768,44856,44689,44854,43800,30986,14622,34194,18981,44739,44765,45515,17009,17601,28313,44836,45180,45177,18719,44873,44837,18894,17114,44855,45277,18446,44671,44845,4686,16885,45043,30135,45346,44875,45421,17981,44868,18185,18279,18301,44835,10402,37057,44865,18172,44878,18430,18353,44853,24412,18572,22509,44849,45561,45229,36472,17771,44884,17351,18652,44531,44687,24438,4765,6862,18042,18794,19057)
Unknown column 'np.person' in 'where clause'