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 (17492,5259,5993,8753,5410,13988,14622,17335,3,17657,45072,30135,18172,44765,32454,44869,18446,45515,44531,45051,6609,44674,44835,18430,6875,45277,14402,44745,44873,45346,17904,44863,44870,28313,17756,18981,19057,4765,34194,3883,24441,44669,18301,31354,18900,18042,45421,18237,18688,24438,22509,44854,44875,17981,44836,44671,44775,18279,6862,44884,6782,18996,30963,17351,18286,45516,45518,44856,28530,44866)
Unknown column 'np.person' in 'where clause'