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 (5410,3883,44764,17351,44671,10402,5388,18900,18719,18430,44873,45421,18446,17556,44765,17835,45561,24411,39676,30963,17278,36472,44884,5993,45286,8753,44836,17237,22509,44868,13425,45518,43800,45277,18301,17601,17114,4686,18648,32454,6862,18353,37267,17335,44739,4765,37057,44775,44711,44856,24441,44685,44848,44689,6782,45229,16885,18185,44766,17771,45177,44867,13988,17904,45072,19057,17492,44674,6609,16935)
Unknown column 'np.person' in 'where clause'