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 (44531,44762,24441,24438,6875,17703,37267,44687,24411,44851,18446,44745,3883,44775,18572,43800,13425,44845,44836,17601,18185,44861,18279,45043,17237,17756,44739,44894,19057,44685,44768,14402,14622,18794,18900,44873,39676,45262,44884,18286,4686,45567,45229,4765,28530,44868,34194,44870,9341,44878,45072,18719,6862,17527,45518,45042,18648,44869,44865,6782,18042,17556,31354,44856,19078,17351,18650,45561,18353,45515)
Unknown column 'np.person' in 'where clause'