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 (45346,45072,14622,13988,18279,18301,45042,6782,5993,44531,10402,44869,44855,17755,18572,45515,17092,5388,44640,34194,44766,44875,17527,19057,44768,9341,6609,16935,44762,37267,44865,44671,17839,18650,18172,17009,14402,18894,30135,17556,17657,18719,44764,24438,17335,18353,18794,17904,13425,5410,18446,44853,45286,44689,45177,44687,44863,31354,6862,36472,30986,44745,44775,45262,3883,44848,32454,17278,44854,44878)
Unknown column 'np.person' in 'where clause'