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 (30986,44851,30135,44866,45517,44640,17755,18894,44671,17601,18301,17237,17351,17527,44836,18652,18900,17703,17556,45515,17114,45043,16935,44845,6875,44858,9341,45421,6862,24412,19078,44894,45177,44739,43800,34194,37267,17839,17278,14402,13,17009,13922,28530,17981,45561,44865,4765,18650,8753,44762,30963,18688,22509,44775,32454,44765,44868,44835,13988,44531,18237,44855,24441,44875,44689,44837,45518,5388,6782)
Unknown column 'np.person' in 'where clause'