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 (30135,44775,44640,44875,44858,45043,5388,13,44764,18185,8753,18427,19057,44861,24411,44863,45180,30986,18430,17904,45177,17492,44849,44866,18996,44674,5259,18286,17335,18446,44865,18172,17835,45516,44765,17755,18572,14622,17114,31354,5410,45517,44745,17839,45515,45346,18042,45262,36472,45421,44845,44848,17703,44767,17351,28530,6875,45042,44869,6862,44687,44762,4765,9341,45229,45286,44836,45518,37267,18648)
Unknown column 'np.person' in 'where clause'