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 (44531,5259,44765,44674,28530,45286,17756,18172,44835,44849,17904,44873,45177,5993,45516,44687,5410,44854,30135,44878,17556,44711,44685,44884,45051,3883,44762,17351,44767,6862,45517,45042,17657,44870,45518,44739,19057,44867,44853,44640,18237,31354,18648,44848,17114,44875,17492,45262,17009,6875,6782,13988,17703,13922,44861,24441,45561,44863,17527,44869,18301,44837,10402,18286,30986,24411,18688,18794,16935,44851)
Unknown column 'np.person' in 'where clause'