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 (18042,17492,17904,4686,45518,13,36472,5259,18652,18279,17351,18185,6782,16885,44863,45517,18648,17335,6862,45262,4765,45229,18172,13922,19057,44853,24411,44762,44867,19078,45180,24412,44687,44861,14402,9341,44873,28530,18719,17848,13425,8753,44835,44764,45516,17114,18353,45277,44866,44851,24441,18286,17556,45561,32454,44858,3883,45567,44669,44875,17703,14622,17527,17839,45072,3,44671,18430,44745,18427)
Unknown column 'np.person' in 'where clause'