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 (24411,45042,44855,44869,17527,44870,18572,17835,18301,18894,6782,36472,44863,44875,44531,44837,45262,44767,13,5993,24441,4765,17278,44854,44868,18446,44845,14402,3,17848,44848,45421,37057,44856,17904,45043,45051,8753,44685,17703,44853,45229,44687,45286,43800,44873,28313,44739,18427,17756,45515,30135,13922,17114,24438,44851,44762,44775,39676,18652,44745,6875,17009,44669,10402,17657,18430,18353,17492,18794)
Unknown column 'np.person' in 'where clause'