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 (18650,13988,17351,37057,18894,17981,45262,44837,44775,17835,30963,45567,44765,44870,18794,17601,17114,45042,44858,4686,18900,45177,44640,44863,44739,24438,16935,18286,6609,24411,6782,44845,24412,3,45180,45286,18301,9341,17771,44875,44767,6875,18572,44851,44861,44848,44894,18353,44531,19078,44856,30135,17278,17556,18446,8753,14622,44687,44855,44766,45561,44669,17756,14402,43800,44854,5993,4765,17237,44867)
Unknown column 'np.person' in 'where clause'