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,44835,44856,44845,45051,44640,28313,4686,34194,18981,18286,31354,18279,18301,44671,44739,18894,4765,45346,17114,17492,37057,44875,44687,16885,24412,6875,28530,45286,17756,17335,18185,17278,18237,6609,3883,17703,44767,24438,18688,45561,45262,44865,17981,17009,17657,18446,45177,24441,30986,44870,44849,44711,44775,19057,44868,30135,44764,17092,14402,44848,44867,17351,44853,44689,18427,45042,17556,44531,17527)
Unknown column 'np.person' in 'where clause'