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 (44836,44851,44878,5259,18572,17756,13,45346,17009,17278,44766,45262,18981,18719,18172,17755,18650,13922,30135,18430,3883,31354,19078,17237,17351,4686,43800,17114,44765,6875,44870,44687,45286,44861,18286,45518,45229,44863,44685,45277,18042,17092,44674,18688,44745,44764,14622,45051,44671,6862,5993,28530,45421,45567,17771,45072,8753,17839,44855,24438,17601,17556,44835,18900,18279,19057,3,45042,18648,18427)
Unknown column 'np.person' in 'where clause'