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 (17009,18650,17703,44849,16885,44687,44863,24412,24411,17278,45051,18172,8753,3883,45421,44669,44671,44745,5410,5993,17335,17756,17351,19057,44875,6862,14622,5259,44854,44867,17237,18185,34194,17771,44853,45286,6875,18237,45516,44766,30135,31354,44855,45517,13425,4686,5388,22509,24438,17601,37057,44869,44835,13988,13922,18648,44866,44858,44836,18794,18301,16935,44848,44870,44775,32454,44878,17904,45177,44739)
Unknown column 'np.person' in 'where clause'