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 (44836,44894,45421,44768,44687,44878,44858,44845,17839,44689,18172,18794,44671,44849,30986,44873,3,39676,8753,45286,19057,17981,44835,44855,18042,31354,18650,17601,5410,28530,17904,45229,44764,30963,45567,44853,18981,17092,6862,22509,13,14622,44674,16935,45051,5259,28313,13988,44865,6782,6875,44884,45517,44863,16885,17835,44875,44766,44765,4765,5993,44837,18900,18237,36472,17527,32454,44861,45180,6609)
Unknown column 'np.person' in 'where clause'