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 (44836,18996,44689,18427,13988,17755,18430,43800,44685,44894,45180,17351,24411,19078,44687,44835,44837,44868,44640,3,18279,44855,45072,17601,17848,44845,18572,39676,18353,18172,44866,45567,18652,24438,17492,36472,14622,17703,17114,44765,17092,17756,30963,30135,37267,17835,4686,44884,18042,17335,4765,44869,17237,3883,13922,10402,18719,18981,45051,44848,44711,44861,5388,5993,44768,17771,18648,44745,18900,31354)
Unknown column 'np.person' in 'where clause'