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 (44674,4765,45043,14622,44640,43800,17755,5388,45072,17703,30986,18430,30963,45567,44766,44865,45177,44531,39676,19057,31354,44858,44875,17351,17835,44878,18719,45042,24438,44866,28530,24412,44685,17981,17335,28313,18572,6875,44848,44837,17657,4686,17092,10402,18286,14402,44836,44762,44869,18279,45277,18237,44835,44767,17601,45262,18981,18650,17527,44775,45180,17771,44884,44854,8753,45518,18301,17848,6862,45517)
Unknown column 'np.person' in 'where clause'