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 (18279,17771,44875,17351,17009,5410,31354,44865,18286,44851,24412,44855,45042,17492,44689,30135,45516,44878,39676,44873,32454,44836,44764,17278,17835,17848,45262,17657,4686,28530,44858,44640,36472,17556,43800,44866,14402,44671,17904,17601,45517,18648,5993,18650,17114,45518,45277,18894,44894,17335,37057,44837,24441,18996,8753,18185,45072,44775,44861,18652,45286,44762,18688,44767,44863,17756,44669,18572,34194,19057)
Unknown column 'np.person' in 'where clause'