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 (13,17556,24438,24441,30986,45561,6875,16885,17601,44855,37057,18981,17839,44764,44854,44671,44853,17835,17703,17092,3,17335,44739,36472,30963,44837,44775,44689,45229,9341,14622,17771,45277,45180,17009,10402,45518,18650,34194,44768,44765,44873,45042,44762,44894,4765,18427,45516,44669,3883,44766,44875,32454,44866,44856,18237,45072,44863,13922,45262,19057,5410,45567,44851,30135,18719,18286,44836,18900,6609)
Unknown column 'np.person' in 'where clause'