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 (45346,44767,44858,18652,44762,44854,44739,44766,44870,9341,18427,17278,34194,44837,44671,13,18572,45177,18279,30986,45515,17351,13922,44531,18042,18688,4765,44674,45421,44836,31354,44845,5259,5993,10402,44869,45180,24438,45277,22509,18648,45567,45517,4686,16935,17839,18650,14622,45516,5410,17755,17335,17114,18172,17756,44764,17981,44848,18719,6862,44865,24411,44689,5388,17237,28313,44765,18996,44835,18430)
Unknown column 'np.person' in 'where clause'