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 (44878,44861,45567,39676,17351,45180,24412,18185,13425,17839,18650,18688,44766,44739,17657,14402,44775,18301,44875,14622,22509,44853,45516,17009,17278,44674,45229,18794,4765,9341,19057,44765,18446,44884,44835,44854,44669,18172,18353,32454,30986,44873,36472,5993,6782,19078,5410,18430,44858,16885,3,28530,31354,18572,18900,5259,44868,13922,17771,44837,44836,18894,24441,44671,44689,17848,18237,45177,45515,34194)
Unknown column 'np.person' in 'where clause'