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 (19078,24412,17771,39676,18430,18719,44867,44855,44878,14402,36472,32454,17601,43800,44848,17237,5993,17492,3883,28313,45517,6862,44768,3,45567,30963,17556,44739,18172,17839,44762,13425,44775,45515,18688,24438,44685,24441,44849,17009,5410,44866,45042,18185,5259,4765,45421,44863,44868,44835,45518,45561,17756,45043,45051,17527,18237,18042,16935,17351,17335,44767,18446,45277,18353,44858,18996,44884,18981,45346)
Unknown column 'np.person' in 'where clause'