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 (45421,34194,44765,44775,44739,44861,17556,44855,3883,17351,44865,18237,44867,28313,44875,44762,17839,43800,44873,44835,16935,45262,45042,18279,17092,14402,45229,16885,24438,30963,18996,17114,45346,18446,13,5259,44764,44866,18650,18172,18794,17835,44766,4765,44845,45517,30986,45286,44768,17848,24411,44745,17278,44854,44531,18572,45043,17527,17703,18981,18894,44863,6862,31354,17492,24412,3,8753,44689,44894)
Unknown column 'np.person' in 'where clause'