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 (16935,17527,44878,18446,4686,44884,44875,44854,45072,32454,17703,18894,18648,44869,18172,44867,3,17335,44669,17771,18981,44835,44837,10402,44687,24412,13,5993,44739,14402,45286,18237,17556,44865,37267,45567,44845,18572,43800,18427,44640,18650,44775,24441,45229,45042,45518,39676,44768,44767,13988,44873,44685,5410,44674,17981,16885,44855,30986,19057,44848,30963,24438,22509,9341,37057,6875,17009,45516,45346)
Unknown column 'np.person' in 'where clause'