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 (5993,44863,37057,44745,44878,45561,18719,44869,44711,18996,17092,18650,30986,19057,44768,44739,44685,44854,24438,18042,44856,17278,17703,44855,32454,18301,17756,17114,44836,18688,44861,45177,3,31354,22509,17237,44687,44894,44851,17492,17351,14622,18446,18794,18572,13988,44837,18981,18279,18172,45567,44671,45516,28530,8753,17981,45346,45286,45051,6862,17835,18430,17335,36472,45421,18427,17755,45515,24411,44865)
Unknown column 'np.person' in 'where clause'