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 (18996,17703,44854,44865,44849,45515,44848,24411,5410,45177,44531,45346,18981,16935,5388,44858,24412,44835,44853,44837,44764,18301,45561,5259,17848,13988,45043,44878,18650,17755,6782,44674,44851,44671,18446,45180,30963,44687,18648,3,44739,4765,44836,18286,17835,45286,17351,44767,39676,13425,18900,44869,18042,17556,45517,18894,44894,17527,45042,28530,44689,37267,44685,44640,44745,13,22509,44868,14622,14402)
Unknown column 'np.person' in 'where clause'