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 (17771,6875,34194,44739,22509,44869,44865,44894,44687,5993,44861,45229,44767,44762,44854,45421,18430,24411,8753,16935,18648,18652,17556,44866,9341,17755,18237,17492,45561,44884,16885,44531,44868,18185,4765,44863,17756,44685,5259,17527,17839,17092,13,6782,32454,44867,45516,44689,44768,44775,18572,18446,30963,44835,5388,3883,18794,18688,44674,30135,45515,28530,19057,31354,44858,3,17657,18042,44856,45042)
Unknown column 'np.person' in 'where clause'