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 (45262,18446,30986,36472,5259,13922,44835,17981,18981,44640,44767,44775,24438,44689,44845,44762,28313,45277,44856,44868,45346,17904,4765,9341,13,45043,19057,18042,44848,17835,18648,45072,18430,18650,14622,24411,45561,44878,45518,37267,44849,45517,16935,45516,44674,18279,17657,44765,44861,30963,45567,6862,44764,44853,6782,44858,17755,24412,44869,45515,4686,44531,45177,45421,17335,45286,44745,8753,18237,44768)
Unknown column 'np.person' in 'where clause'