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 (45262,17904,14402,44764,45346,44766,6782,17848,9341,30963,44845,5993,45072,18572,18301,45180,17527,24412,44762,17703,22509,18650,45516,17657,44674,44856,3883,44848,44835,44739,18042,44837,44685,45051,18894,24441,44868,45421,19057,17351,16935,18652,19078,45229,34194,24411,18279,44836,18446,44640,45515,30986,28530,44865,44854,44855,44863,18430,45518,4686,44875,18900,14622,17756,32454,10402,13988,44768,4765,13922)
Unknown column 'np.person' in 'where clause'