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 (31354,44687,19057,44884,44865,44669,18648,44739,44711,44855,13922,9341,17237,18279,44762,44867,18572,45180,44765,24412,6609,45072,18353,44766,18427,45286,28530,28313,44531,16935,45042,17527,18688,36472,22509,17009,18172,5410,45229,44689,45177,44767,44869,32454,37267,17904,5993,17755,44851,44878,19078,24411,18301,17601,44861,24441,17756,44775,18652,17839,45421,44856,16885,39676,44768,5259,6875,45561,45567,18981)
Unknown column 'np.person' in 'where clause'