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 (18042,4686,44669,9341,45043,37267,45516,17835,45561,18446,30963,18719,44863,45286,44848,44855,18650,17981,45072,6862,44685,14622,45515,44765,44687,44865,17848,44869,32454,18572,45346,44674,44866,17755,44884,18172,44531,44870,6875,18794,44837,44762,10402,44835,44640,44836,18279,44854,8753,17556,5993,34194,44739,44894,18900,45229,4765,19057,16885,45262,24438,18996,45518,18652,31354,5388,13,17278,44867,44768)
Unknown column 'np.person' in 'where clause'