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 (45421,10402,17114,17703,18900,44768,45043,44689,44878,18430,18172,4765,44848,9341,13425,44845,45518,39676,6875,44873,3883,44766,44711,19078,32454,5993,44851,44861,36472,28530,24411,44866,6782,44835,18185,44764,31354,34194,45567,6609,18688,18572,44865,45072,17278,44762,17601,22509,5388,45515,17527,13922,24438,17009,44765,44687,17771,45277,16935,18237,17839,17657,18648,44870,24441,44640,45561,17848,24412,44685)
Unknown column 'np.person' in 'where clause'