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 (18446,22509,18237,24411,44868,44745,44640,18650,44858,44689,44863,44711,4686,18353,28313,45286,44873,44739,10402,5993,44762,30986,13922,6609,45042,18427,44853,5259,17237,44854,17703,17092,44764,17904,6875,8753,43800,44851,44865,9341,45277,3883,44867,17556,18185,44884,13,24412,24438,45516,18279,18648,44869,37267,44767,16885,17278,17755,44861,17657,44674,18719,45561,45072,18042,18981,44855,17335,34194,18900)
Unknown column 'np.person' in 'where clause'