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 (18996,44767,44689,44739,44711,18430,3,44855,18279,6875,44878,45567,22509,18286,36472,44836,45421,17771,44765,44685,30135,8753,44835,17351,37267,9341,18719,3883,44868,4686,18572,44531,24412,6862,44861,44671,14402,16885,17492,18648,19057,44764,45043,45229,44875,17092,18894,45346,44745,44669,18237,17835,43800,18650,44687,44848,30986,44640,34194,44775,45180,44853,45518,24441,45262,44762,18353,18652,5259,45286)
Unknown column 'np.person' in 'where clause'