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 (24438,44873,44762,18279,22509,17981,45042,18900,44837,44768,32454,39676,44869,44851,44531,13425,45177,36472,17237,44849,17657,18301,44868,18446,17527,14622,18172,31354,18430,18719,17601,44845,44894,13,17703,44878,5259,19078,6862,44640,44848,45567,43800,45180,45517,44856,4765,17092,17839,44689,44764,45518,19057,45515,18237,44745,45043,44685,45229,18572,9341,5993,45516,44855,17556,30963,17492,18688,44853,44866)
Unknown column 'np.person' in 'where clause'