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 (45561,6875,44845,17657,39676,13988,45421,18430,18301,44775,44867,18572,45518,18427,5410,44853,44854,34194,13922,45051,24438,18794,32454,44531,44739,18688,44837,19078,44848,17556,45516,17009,44849,18353,6609,18286,17492,18996,18900,44870,17278,44863,44855,44878,17092,44836,45177,14402,8753,44765,30135,18719,17835,3,17527,17351,9341,10402,16935,5993,45180,18648,44767,24412,5388,17848,44835,19057,18172,44689)
Unknown column 'np.person' in 'where clause'