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 (44766,44669,18794,17755,45346,44853,44894,44764,34194,45262,44849,24412,45072,44863,44875,44745,18572,44855,45561,44865,44531,45567,9341,5388,18185,31354,17009,44869,17657,17335,13922,44687,18894,44765,44854,44775,24411,17904,44836,45043,44674,44851,6862,44848,44685,17492,18652,18650,44762,6609,44689,45042,44870,45421,17835,18042,44640,17237,44861,17848,44739,44671,45517,24441,5259,18237,18286,44711,45180,18353)
Unknown column 'np.person' in 'where clause'