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 (17092,34194,18042,45518,44687,16885,24438,17981,8753,3883,44873,45517,13,44854,45286,17492,17839,44689,5259,44531,30963,6782,17756,24412,17556,44674,16935,45346,18446,18172,44856,5410,44835,17755,3,22509,17848,18894,44768,6862,4686,44837,44762,44861,10402,17657,45516,17703,17237,44863,18794,17335,37267,24411,30986,18688,44767,44848,18237,44711,45051,45561,17351,18652,4765,18353,45567,44869,44745,44849)
Unknown column 'np.person' in 'where clause'