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 (17492,44861,18185,45229,44671,18042,44851,37057,18652,5388,43800,13425,31354,30963,44674,18650,19057,14622,24411,18996,17755,44837,17904,18279,17335,45567,18237,44866,5259,45286,17556,44865,18286,6875,44863,24412,6862,24438,44689,36472,18446,18900,45277,44762,18353,44854,44878,45346,44711,17527,44669,6609,44685,32454,18719,17703,24441,44765,18794,44764,3,44869,17839,4686,45515,45072,13922,3883,44870,17835)
Unknown column 'np.person' in 'where clause'