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 (17092,18185,44765,45042,44894,8753,5259,18900,17755,6782,44875,14622,17904,6875,37057,44687,30986,28313,17981,44766,17839,17657,3,18648,24412,16885,17009,44858,44836,45072,17556,5993,44856,17351,44531,44869,18572,44689,24438,4765,45286,13988,45561,44853,17114,44866,44764,44674,16935,13922,44837,44865,18237,18894,45177,45421,18286,18996,19078,5388,45229,5410,17527,17237,36472,45043,18301,13,17278,30135)
Unknown column 'np.person' in 'where clause'