Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18648,32454,24441,17848,44836,17839,6862,4765,37057,45229,10402,13988,44869,37267,45567,44856,18719,17771,44855,45561,44837,44711,14402,18996,44767,44689,17755,44867,31354,28530,5410,44671,39676,44764,18981,44873,18279,24438,44531,18172,43800,18688,5993,17492,44878,44640,6782,18894,22509,45346,13,45042,44687,17601,6609,17835,5259,44875,19078,24411,44762,44866,17527,44865,18650,13425,44835,4686,44853,17009)
Unknown column 'np.person' in 'where clause'