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 (44685,37057,45286,18446,17601,13,44854,44764,44884,30986,18900,44739,45517,30963,13425,18286,18427,17657,45567,44689,13988,17237,5410,16885,45072,18572,44835,24441,45346,14622,17835,44848,18237,44851,18172,44767,45042,44863,44837,24438,44845,44711,10402,44849,16935,6609,17904,31354,39676,44640,17351,44894,8753,43800,17009,45421,44856,17556,45262,17771,45561,36472,3883,17335,6862,9341,44858,19057,17092,44867)
Unknown column 'np.person' in 'where clause'