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 (44671,44873,44869,44711,22509,44685,44768,18794,30963,44851,45042,18981,44845,31354,44764,44767,44848,8753,24412,32454,13988,17756,45561,18650,44855,45072,18427,44765,18042,45517,45346,17351,45262,45421,3883,17492,44856,18572,17237,18446,17009,13,6875,6609,18301,44870,17092,17848,24441,17114,39676,44836,44858,14622,44640,44863,44854,45518,18286,3,19078,18279,19057,14402,16885,5388,10402,30135,44868,17657)
Unknown column 'np.person' in 'where clause'