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 (14402,32454,6875,44640,6862,45177,18794,45421,17756,9341,6782,3,17981,18996,45051,44689,44835,31354,13,28313,13425,18237,17755,17092,44837,22509,17839,24411,5388,44869,30963,6609,17351,44766,17114,44849,45277,18430,44765,45567,45262,44878,45561,36472,13988,44863,16935,37267,45229,44894,5410,44875,18301,17556,44865,44531,43800,45515,17009,44858,17278,18719,37057,17527,45516,18446,4686,18688,44836,13922)
Unknown column 'np.person' in 'where clause'