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 (10402,19057,44768,6875,44745,17771,45229,6609,44849,17848,30963,3,44875,44845,44868,44764,17755,18286,17657,44848,5993,37057,44878,18996,44767,17237,13922,45043,18185,36472,18900,45177,44837,44869,24438,18042,18894,4765,44861,44865,44689,24441,45517,44687,44674,44858,14622,30986,37267,4686,5259,18794,44775,45180,44671,14402,18719,6782,18688,45042,17335,17527,24411,45277,45262,13,9341,24412,45516,5410)
Unknown column 'np.person' in 'where clause'