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 (17527,18996,18446,6862,17601,18719,5993,45042,13425,44764,5388,45177,17278,44766,6875,44856,17771,17756,45517,44835,18353,37057,17835,17703,18572,32454,45515,31354,30963,44671,45072,44845,24412,28313,44869,18237,44866,34194,22509,19078,45043,45567,18172,16935,45516,44884,17904,44878,44867,44689,18427,18301,44853,44739,14622,44837,18286,4765,44861,45346,17556,17237,19057,45262,44768,44875,44767,45561,13,18648)
Unknown column 'np.person' in 'where clause'