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 (36472,17492,44835,44685,45277,44765,44764,45262,17527,43800,44762,45515,44766,17657,44873,44836,44851,44863,44866,44867,18279,6782,44687,9341,44669,18430,44689,45051,45518,17755,4686,44837,28313,44671,17009,37057,3883,16935,34194,44868,18652,18286,17756,13922,45229,18172,44853,44531,18900,45286,18042,44861,28530,3,24438,44894,17351,13988,45043,17981,45517,17278,39676,44848,18237,44870,14402,18894,18427,5259)
Unknown column 'np.person' in 'where clause'