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 (14402,44768,18894,6862,44836,5388,45421,17278,17114,31354,30963,17556,37267,18185,45229,44866,3883,45043,45286,24441,17904,44765,45177,44669,44855,44878,44854,18719,44739,44861,44766,17839,44687,10402,44671,44767,44745,18430,17601,17981,9341,44853,17335,43800,18996,18900,24412,30986,18279,44849,3,44762,18688,37057,44884,44531,44894,5259,44640,5410,13,44689,22509,28313,5993,28530,17835,39676,44837,18446)
Unknown column 'np.person' in 'where clause'