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 (17351,34194,17755,45277,18279,44865,44711,44858,18650,14622,6875,45346,17839,24412,45072,43800,18353,17278,17556,44685,44854,5410,16885,45515,44845,17848,44870,9341,18446,44875,44867,18900,44767,18172,44762,19057,44861,3883,45229,6609,45180,44835,37057,44640,45177,44836,44689,30135,17237,17703,36472,44739,44674,24438,8753,18301,44849,44671,30963,44851,17756,18794,6862,28530,17335,45262,18688,17835,18996,45561)
Unknown column 'np.person' in 'where clause'