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 (17114,44865,13922,45516,44858,44762,43800,13988,45277,37057,44775,14622,30963,44848,17278,17657,44687,17703,18650,13,5410,44861,18900,16935,30986,17835,6609,44739,28530,44689,44868,34194,6862,5388,18652,44856,44866,44765,18427,24411,44685,44531,18042,45177,18172,44863,18237,44875,18794,5993,18353,44671,18301,44855,17335,44867,44640,18572,45180,18719,32454,45262,3883,45518,45517,45043,17839,17237,44854,44764)
Unknown column 'np.person' in 'where clause'