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 (17556,6782,32454,44836,5993,14402,17981,17527,44854,4765,14622,17835,18353,18042,24441,45051,45516,3883,45180,43800,39676,24438,44762,17771,18446,44849,17492,17278,30963,13988,19078,44884,44873,18688,10402,9341,17904,44640,34194,44669,17657,44835,5388,44765,18572,17839,22509,45346,3,19057,18286,44764,44671,17335,18430,45229,8753,6862,30135,44875,45277,45072,18794,18237,6609,5259,45518,18996,17009,6875)
Unknown column 'np.person' in 'where clause'