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 (17556,44867,45518,45515,44868,45043,13988,44875,18650,8753,44869,44739,34194,18301,18688,44837,45051,13425,31354,44687,37057,18900,45177,19057,44531,17703,17492,44856,44762,44884,44854,17278,45346,17839,44894,37267,18996,44689,5259,44674,3883,6875,22509,44849,4765,14622,44768,10402,18427,30963,3,44835,30986,14402,44853,18237,17335,17009,18353,5410,44669,24438,18652,17756,45229,13,4686,18894,5993,18279)
Unknown column 'np.person' in 'where clause'