Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND 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'