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 (6875,37267,18688,17601,24412,45421,44869,17114,18446,4765,44687,17351,45515,44849,43800,45277,44855,8753,18301,44851,17527,44835,37057,45042,30963,18900,44640,44875,16885,17009,44669,44894,44764,28530,44775,9341,5388,17237,18430,13425,44837,17756,13922,44866,45518,44854,39676,45567,18237,3,22509,44863,44865,45177,44867,44858,17278,18427,18172,17556,13988,45346,16935,44848,30135,5259,44861,45517,44685,45286)
Unknown column 'np.person' in 'where clause'