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 (44854,17009,18794,24438,45286,45346,6875,14622,30135,18900,19078,44866,45180,44858,16935,13,44745,17756,18572,45177,44855,16885,14402,34194,6862,31354,44845,17278,45561,17771,17237,5993,44671,18996,44837,44669,44762,30986,44868,17703,3883,44739,4686,30963,37267,44768,32454,44861,18042,45567,45042,44685,45277,44687,17556,18652,18185,39676,17527,44765,43800,44764,45421,13922,13988,18286,9341,44865,44863,17601)
Unknown column 'np.person' in 'where clause'