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 (17756,44868,19057,5388,44687,28313,45567,44875,17848,18894,18042,13922,45262,44867,17351,30986,34194,44767,18446,45518,18900,44878,44689,44858,44854,44768,44711,18353,17771,5259,3,44870,6862,18286,45421,44836,4686,13,28530,16935,17556,24438,17237,18185,45516,17009,8753,44766,18719,44835,44861,44863,17492,17657,44671,44851,44848,17839,18652,18301,6782,44873,37057,24411,18688,5993,4765,44669,17601,18794)
Unknown column 'np.person' in 'where clause'