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 (13988,17756,44849,45561,45567,18172,44669,45229,44739,18301,28530,18648,31354,17237,45346,17556,17703,28313,44768,44674,17278,45043,45072,18900,44863,18237,44868,13922,17527,24438,8753,45515,22509,36472,45277,17771,17839,19057,14622,17114,37057,18894,4765,18572,32454,44685,44865,24441,18427,44762,45286,24411,30963,17335,17351,17492,5259,44884,44766,44854,44866,44875,45177,45042,10402,44836,44870,44853,34194,44711)
Unknown column 'np.person' in 'where clause'