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 (45518,17351,17092,18900,44689,28313,44867,44640,17657,30986,44775,18981,44855,4765,45346,17904,6862,10402,44835,45277,37267,44845,44873,18427,44768,18286,18688,16935,44848,34194,14622,17527,45177,14402,45516,45421,44739,18894,45051,13988,32454,6875,18996,45517,18794,3883,5259,44865,45515,17981,44863,44669,5410,6609,3,45042,18572,44764,44674,17237,44685,22509,45262,17835,31354,28530,44861,18446,44745,18719)
Unknown column 'np.person' in 'where clause'