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 (44873,17556,44861,24411,44875,18430,44674,45180,45561,44856,28530,45286,18286,44762,19078,13922,45042,17335,18042,44870,17835,18996,4686,18794,44685,45517,14622,18894,17756,17492,18427,44739,17237,18900,16935,18719,44669,44869,13988,44765,44851,17351,44853,45346,19057,17848,44849,17009,44845,18572,44687,17755,17904,18279,37267,44836,24412,44858,45072,18185,18172,17527,43800,17839,18648,45262,22509,44640,18652,44766)
Unknown column 'np.person' in 'where clause'