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 (18172,44875,18572,44867,44764,44849,18794,44671,44669,45042,44762,13988,17756,18981,17657,44687,17527,17335,44868,45072,17492,30963,36472,45346,13,18237,18996,44745,3883,44739,45043,22509,31354,18353,44711,13425,28313,18430,24438,44689,45516,44853,44865,18279,45515,17835,44854,24411,43800,44835,44856,28530,44845,6609,18446,45180,44866,18427,44848,44878,18185,24441,17981,5993,45518,44851,17009,44863,17771,13922)
Unknown column 'np.person' in 'where clause'