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 (13988,44858,24412,44766,17092,44861,44685,30963,18894,45277,19057,44855,10402,44775,30135,18652,45262,44848,14402,45515,44869,45421,44687,44849,28530,17756,17601,44868,18794,45561,28313,44853,17835,18185,17351,6609,44640,5388,44851,16885,13922,5993,32454,17009,44894,14622,44764,17492,22509,44767,44870,45286,3,4765,44669,18237,44854,17839,24441,6862,43800,44765,17848,18430,45516,45051,44671,45517,3883,16935)
Unknown column 'np.person' in 'where clause'