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 (44768,18996,17756,6862,18279,44863,45561,45180,44884,28313,44849,45042,30963,19057,44848,18353,13988,18286,44674,44689,6609,32454,17114,44866,18981,14402,17237,22509,44711,44766,17771,5410,44853,17278,39676,44764,44854,13922,5388,18648,37267,45421,44739,43800,44835,17835,24438,45516,13425,17527,45346,18185,44845,17839,17601,44765,45515,17657,17492,45517,44873,44640,24411,34194,44531,19078,44745,18427,45262,17556)
Unknown column 'np.person' in 'where clause'