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 (45042,44711,17335,45517,24438,18172,14402,4686,37267,17703,44856,18794,45561,22509,18688,31354,18279,44870,44768,44861,17756,18894,45072,19078,18900,18237,13,17981,44853,17848,44671,9341,17657,3883,44674,44745,19057,44764,44765,4765,45516,8753,44868,13425,45043,10402,44858,18446,30986,45567,3,44837,32454,6875,13988,18572,18652,13922,5388,44685,44848,18286,16935,45515,44767,24441,44687,45229,44766,18042)
Unknown column 'np.person' in 'where clause'