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 (44640,24438,5993,45516,44836,44894,4765,44739,44745,14622,18353,17771,18650,18572,13,3883,44858,44687,18237,44854,45517,18430,44671,44873,17335,18894,44866,32454,45567,44869,44674,6782,17755,39676,43800,19057,13922,30986,44867,6875,18688,45262,30963,45042,17981,44863,4686,17114,10402,16885,17904,3,45561,17527,44766,44764,6609,18652,30135,44669,22509,45286,24411,44689,17848,45072,17756,18719,18286,17092)
Unknown column 'np.person' in 'where clause'