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 (5388,45516,17657,45346,18900,4686,44765,44845,19057,14622,44867,44768,44835,44865,14402,18279,17703,44878,44870,22509,45043,18185,44764,6862,44739,44848,45229,18042,32454,18286,44856,44762,18237,44861,17556,17351,45286,17009,44671,24412,18652,18981,44854,44858,17848,45051,45042,45072,18446,17335,18572,17835,45277,44745,45177,24438,44836,16935,18894,19078,43800,44531,44689,8753,44767,3,18719,44851,17755,44866)
Unknown column 'np.person' in 'where clause'