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 (44765,45229,44640,44531,34194,44762,44854,44768,44894,45518,45286,44775,44689,6862,24411,24412,44875,44869,44853,45043,8753,18172,5388,5993,45051,45517,44863,17839,32454,18719,13988,18353,17009,44739,6875,18996,18981,44745,13425,17703,24441,17527,17904,45177,44861,18446,44767,16935,18042,44848,18688,30986,44878,18237,28530,17755,17351,17657,45567,18572,44687,22509,18894,44867,44845,17092,44674,9341,44868,17835)
Unknown column 'np.person' in 'where clause'