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 (19057,44867,44848,44762,44669,44837,44764,17527,17351,44873,17657,44745,17703,18279,44765,6782,18900,17755,44767,44858,45042,34194,44835,45517,36472,17835,44869,44868,45072,17848,18353,18286,14402,18981,17556,13922,6609,17492,31354,44689,6875,18894,44766,44845,44855,45515,44671,45262,45051,45277,16885,18430,3883,13988,5259,44884,18301,44739,18688,18237,4686,18042,24438,18794,45180,14622,22509,18996,45286,37267)
Unknown column 'np.person' in 'where clause'