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 (18279,44775,44671,44863,22509,30135,44767,44875,17009,6862,44640,17755,18652,44884,17839,18446,18430,17556,28530,44531,18650,44766,45042,31354,44866,3,45286,8753,17351,44861,37057,16935,6875,44669,44768,17981,18185,17904,13,24438,24412,18719,44845,43800,44849,18042,18353,44851,44868,18286,44856,44689,17703,18572,5388,3883,18900,44848,5410,5993,45180,13425,17771,44762,44764,45421,17114,18172,45567,9341)
Unknown column 'np.person' in 'where clause'