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 (17703,45286,45042,44669,45072,44765,18237,17351,8753,44775,44863,44861,18996,17009,44848,44849,16935,45421,44836,3883,44878,44875,44865,44762,5259,17556,44869,44855,17237,18981,18172,18446,44837,4686,17527,28530,24412,19057,17981,5993,18650,17848,17114,18572,44689,44640,18894,17601,45262,18279,18688,13922,6609,44768,44767,45515,44845,3,18301,44685,44674,44867,44766,44873,32454,5410,37057,17657,44866,9341)
Unknown column 'np.person' in 'where clause'