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 (5410,43800,36472,44858,18286,17556,17527,45567,45515,44870,44873,17904,13988,28530,34194,18172,45051,4765,3883,17492,44875,44878,6862,17335,6875,9341,45516,13922,17351,16885,45561,44851,44767,5259,18894,16935,18996,17657,44711,44868,18430,44848,44764,45346,17278,37057,30986,18719,44739,44867,6609,44671,24441,44865,18279,44836,13425,44837,19078,44863,17848,18042,45229,45421,13,45180,18353,18185,18900,5388)
Unknown column 'np.person' in 'where clause'