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 (44669,18688,24411,44875,45277,44856,9341,14622,36472,18794,17527,18572,17601,45518,17335,18427,44711,17771,44768,45229,4765,22509,44671,31354,45262,30986,18894,44863,44766,44894,44531,17237,18286,44765,18430,17092,3,44865,28313,45517,18652,17755,24412,44836,13988,45561,44845,13,37057,6609,43800,17492,18042,30135,45043,44867,44866,18237,30963,44739,16885,18185,18446,44884,44835,45072,45180,44878,44745,17839)
Unknown column 'np.person' in 'where clause'