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 (18042,45516,34194,18900,18279,17092,37267,13988,19078,4765,44835,28530,17527,44845,17756,30135,45515,14402,37057,18981,18894,44853,45286,22509,44764,44866,44865,18446,39676,44869,44878,24438,32454,17278,44711,45180,44768,44848,44687,44689,18353,44868,44674,17351,45277,16885,18427,18648,6609,8753,44836,9341,19057,5388,17114,45567,18719,44685,44765,44837,17755,18237,44531,6862,44854,45262,45177,24411,17009,14622)
Unknown column 'np.person' in 'where clause'