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 (13922,24441,44531,18301,45286,24438,17492,45042,18279,18237,17009,17092,28530,17756,6875,44739,18042,17278,44853,18688,45516,32454,45051,17981,45262,44764,24412,17657,44858,31354,44894,4765,44685,44775,44867,17601,17556,14622,30135,44766,18996,5259,30963,18430,9341,44863,18719,44855,44674,44870,44856,13,18572,18900,17904,44861,44869,17351,45072,16935,6609,8753,37267,34194,45421,45043,44837,5410,18794,22509)
Unknown column 'np.person' in 'where clause'