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,13,6782,17278,44689,17527,6609,17009,36472,18894,37057,9341,45262,8753,19078,44775,18353,44531,44858,19057,24411,6862,17492,30135,3,18996,44768,44765,17771,18172,45516,45051,44875,18900,44687,45561,17335,44849,44878,44685,13425,45072,13988,17114,44851,43800,45421,17351,10402,24412,18427,44767,44711,24438,45042,44855,17835,17839,45180,17904,18572,44865,4686,45515,18185,17657,5388,17092,18042,17755)
Unknown column 'np.person' in 'where clause'