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 (18301,44849,17848,24411,6862,45042,44878,24441,44768,45517,17351,17839,45561,44870,17601,44739,44867,18981,44767,17981,34194,22509,5410,45072,44863,13425,45051,45262,44745,44865,24412,36472,44845,18237,44762,13988,45177,44875,6875,14402,17237,37267,44685,17335,44866,9341,18430,44873,19057,17756,43800,18446,44853,44764,18042,17755,44674,44848,18650,18648,17492,18900,4686,28530,13,45346,44671,18996,45515,10402)
Unknown column 'np.person' in 'where clause'