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 (13922,44856,3883,39676,45177,18301,18996,45561,45051,36472,24441,37057,18446,19078,44845,44685,13,6875,3,44768,18648,44855,44766,45421,13425,17492,28530,45518,14622,44674,6862,44775,44687,44873,43800,28313,44849,44853,44866,6782,45346,4765,30986,5993,17904,45515,37267,8753,30135,6609,17237,17335,44863,10402,4686,32454,45042,44669,16885,18894,44851,45516,44745,17114,24438,24412,17278,18650,44894,44867)
Unknown column 'np.person' in 'where clause'