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 (18301,17904,17756,18185,18648,44775,45421,5259,44745,17278,17755,44878,44687,17009,4765,44858,45072,13,24412,16935,44685,44854,5993,17351,36472,24441,44848,18353,14402,19057,32454,14622,44767,3,44766,5410,17092,45517,45567,34194,37267,28530,44855,44671,44861,44835,16885,44836,18286,45051,44894,18042,18894,17335,44762,45042,18446,30135,44845,45516,22509,37057,45346,44531,43800,5388,45515,17848,45043,17556)
Unknown column 'np.person' in 'where clause'