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 (37057,45051,44855,44870,44766,5993,6609,18688,5388,6862,18301,37267,44837,44765,45286,5410,45180,13922,44764,34194,45262,45567,16885,24412,31354,18286,44836,17527,24438,22509,18648,39676,45277,6782,17771,44873,3883,17839,44865,44775,18794,18996,45516,44853,45229,44745,44866,17237,44851,30986,17703,18427,14402,9341,44711,17009,44640,44685,30963,18900,44858,44869,44767,18719,45042,44687,13988,18894,17657,17848)
Unknown column 'np.person' in 'where clause'