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 (34194,17527,18427,17278,28530,43800,17556,44669,44870,44894,44531,3883,44867,45346,45561,44767,31354,6862,16885,19078,17835,18794,45072,14402,5993,18648,44765,24412,24438,44764,18652,44863,45177,44854,37057,4765,37267,44671,18430,45180,17981,18650,18894,44861,44865,28313,18688,17755,44869,17492,44766,44739,45567,44845,45517,18572,17839,17601,5259,18286,17114,18237,18900,45277,13988,44689,44745,44768,9341,5388)
Unknown column 'np.person' in 'where clause'