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 (18286,44669,44531,18650,45177,16885,5993,32454,31354,45561,44689,45042,18353,19078,17237,18172,44878,44765,17848,30986,44845,6875,44762,45072,45286,45262,17771,18279,18237,44745,45043,30963,45421,24441,45518,44775,18572,44768,17839,17351,44855,3,44640,24438,44851,10402,19057,3883,44687,6609,44764,44875,44837,43800,18981,44767,13,44854,17755,44671,18996,22509,45515,24411,45346,44861,17601,6862,45180,45277)
Unknown column 'np.person' in 'where clause'