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 (45567,45042,45517,17351,44875,44854,44866,45561,44894,45072,44851,17835,9341,22509,19078,45516,45043,18719,3883,17492,6862,44687,18279,17237,45518,24411,18237,44868,45515,17335,17848,44861,30135,17904,17839,3,13922,13,5259,4686,18301,18900,6609,44835,44867,17601,24441,18648,17092,44711,45277,44745,44685,18446,18353,30986,18427,44766,19057,16885,44856,17114,44865,37057,17278,17771,30963,17556,6782,32454)
Unknown column 'np.person' in 'where clause'