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 (17556,36472,45229,3,30135,24411,45515,44878,45043,44640,18794,45561,24438,18237,44855,45177,32454,17114,44836,18894,44869,17278,17904,44671,18353,18279,44711,8753,14622,17835,44873,19078,31354,44863,44853,44861,18427,45072,45180,18172,44870,13922,6862,5259,44674,44866,30963,44669,17657,45346,18650,18996,14402,17335,19057,18900,17237,4765,18446,44687,6782,44865,44762,22509,44848,18572,44767,44531,17756,18688)
Unknown column 'np.person' in 'where clause'