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 (45286,31354,5993,18446,17839,44640,17981,44867,44764,34194,39676,44766,44875,19057,8753,17335,18894,37267,18572,44878,44863,3883,44669,17848,44711,44858,13922,44837,45277,44674,45421,17771,6862,17756,30986,44851,44768,44689,44873,10402,19078,45229,44854,44849,5410,17492,17703,17601,45346,18301,44884,18237,9341,30135,44685,44835,16885,5259,17092,22509,37057,44745,13,45567,44739,17278,44762,18353,5388,44894)
Unknown column 'np.person' in 'where clause'