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 (18427,44766,3883,18894,17114,17703,44775,16935,17839,45177,17904,36472,6609,8753,44674,28530,19078,24438,34194,17981,44867,45277,16885,44685,44865,44711,44863,24441,44762,18446,37267,30963,17771,18900,45518,18042,44837,18981,17848,45262,44858,17527,43800,4686,6875,17556,44835,44878,44869,5993,45043,44745,24411,17237,6782,31354,13988,32454,44853,44845,18996,13922,9341,45286,18430,13425,17278,18794,45567,17835)
Unknown column 'np.person' in 'where clause'