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 (44766,44711,3,45561,44531,10402,18894,30135,18301,13988,18572,5993,44836,44884,45516,17835,17657,45262,17009,44671,19057,17237,17092,44863,44870,44855,18996,44762,44861,17278,18648,44856,44768,6862,44689,18446,17839,44669,45567,44849,44875,17771,18185,24441,44865,36472,45042,34194,45072,39676,17756,44674,5388,5259,16885,5410,44868,45043,9341,44853,18688,16935,45229,24438,44767,31354,6782,17981,17351,17848)
Unknown column 'np.person' in 'where clause'