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 (44863,17771,44875,19057,44836,17492,44854,44855,18981,44853,14622,44865,18430,44766,5993,24412,45262,18286,44739,18894,17092,18719,3883,17351,45561,44837,44640,17839,44745,44687,32454,44849,17657,18648,44868,45567,18237,10402,18794,6875,44894,45421,45517,17009,3,45515,44775,17755,18446,44768,44861,4686,44858,45072,44884,9341,13,18650,45177,5388,18652,44685,18996,17237,17114,18572,24438,44762,37057,17981)
Unknown column 'np.person' in 'where clause'