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 (44851,44856,19078,44865,6609,45515,18185,8753,17848,16935,45516,45043,45567,30135,44873,17755,18279,18042,44894,44674,17835,44854,37057,44837,17527,45177,45517,44687,6875,16885,17657,18430,44869,44878,18981,44855,13922,17492,44863,44868,6782,45229,18286,24441,18688,17351,44640,14622,44845,44765,30963,44745,45262,18894,44849,17114,18237,18652,18996,44764,45561,17278,18650,44739,13988,24412,4686,45421,18353,18301)
Unknown column 'np.person' in 'where clause'