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 (44865,18237,19078,44836,44711,44687,30986,37267,43800,3883,6609,10402,45561,3,44875,13988,44878,18172,44894,44766,45567,44845,44689,44851,45051,45042,18301,16935,44837,5388,30963,44866,18185,45072,44835,4765,28530,31354,18648,18981,17527,44764,17092,44762,45177,17981,17601,18286,24441,44745,17848,18353,17556,18688,17237,44849,45346,45262,13922,45515,19057,8753,45229,45043,18894,32454,34194,24412,6782,18279)
Unknown column 'np.person' in 'where clause'