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 (44762,30963,18301,44687,18042,18237,44856,18572,4765,44868,8753,45517,44861,45567,28530,18719,30986,14622,17009,44845,44674,44669,44764,32454,17527,18279,5410,44531,19078,44884,44689,5388,44768,37057,18353,17981,45421,44739,18900,45043,44870,22509,18652,6609,45051,45229,45516,44858,44745,6862,18794,18894,17771,45277,44836,44854,44853,44869,39676,5993,44866,16885,24438,36472,44863,45561,17335,45072,17848,3)
Unknown column 'np.person' in 'where clause'