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,8753,44745,4765,18185,44767,17335,6782,18719,18172,45180,17848,32454,18430,17114,17351,44739,5993,18301,45177,18894,45042,24412,17981,18446,17771,44775,44669,13425,45277,5388,18996,31354,28313,14622,17492,34194,24441,45517,28530,17237,30135,17835,39676,45516,18279,44870,44845,44858,24411,44768,9341,4686,18237,18427,3,45561,17657,30986,13922,17839,6862,22509,45286,17755,44848,18572,45518,17601,44531)
Unknown column 'np.person' in 'where clause'