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 (18652,34194,45072,44866,44531,43800,24438,18719,39676,17335,30986,44848,28313,44765,18894,45518,17839,44855,13988,44858,44869,17771,44870,44671,4765,3,17556,22509,44685,18650,17703,18286,18430,45517,17114,44861,18996,19078,44894,45051,44878,45561,6862,16935,13425,5993,17755,17009,17848,44745,44835,44849,44764,30963,13922,45567,45177,18900,14402,37267,45262,44845,44873,18688,18042,44768,44766,6875,44775,17092)
Unknown column 'np.person' in 'where clause'