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 (18900,17904,44764,18648,44868,4765,18430,44836,44640,44775,24441,43800,18172,44858,45515,45567,18185,17848,24438,18996,45277,45051,5259,9341,17009,44745,44869,45043,44884,5410,17351,45262,6875,17756,13922,44768,5388,44689,8753,44849,45177,45229,44739,24412,45286,13,18794,44845,18688,44853,44765,17556,18301,44867,34194,18652,45346,36472,14622,44669,17703,13425,24411,44531,6609,5993,3883,44674,30963,44875)
Unknown column 'np.person' in 'where clause'