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 (37267,44685,13425,44762,45286,44868,36472,18572,44845,45262,30986,44768,44855,24438,44851,17848,17771,14402,44835,17009,45516,10402,44836,17278,44854,44865,44861,5410,44894,18794,4765,16885,18185,44856,19078,17835,45072,45180,44687,44878,45561,18279,24441,45177,8753,6875,24412,44669,6609,17492,43800,31354,44764,44884,17904,6782,13988,18446,44745,18353,44689,22509,13,18648,44837,17351,17703,17556,44858,30963)
Unknown column 'np.person' in 'where clause'