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 (22509,3883,17703,17904,13988,31354,17114,17839,17835,6862,44875,18237,16935,44873,44855,6875,13,44764,44870,4686,44894,44767,8753,18650,18172,18894,14402,4765,17278,45277,45177,45567,44674,30135,17657,17009,5388,44689,44835,44866,18719,18794,37267,44685,45286,6782,44836,44848,18430,17092,44868,44863,18572,44837,24412,17556,18301,19057,13922,18446,30963,45229,9341,44861,45518,17756,17601,14622,44765,44745)
Unknown column 'np.person' in 'where clause'