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 (13988,44739,44836,17114,45042,5388,13,44867,16935,44745,5410,18237,44685,10402,44775,17351,45043,45051,24412,44858,17839,18688,18719,44853,44870,17092,44845,44768,44762,18172,44873,9341,44865,18279,17278,18894,17527,44868,17237,44875,45561,44764,30135,17703,45180,5993,34194,24411,44687,22509,44711,18996,44640,4765,44835,17771,18430,45286,3883,32454,30986,18446,31354,44866,6875,6609,16885,6782,44861,44878)
Unknown column 'np.person' in 'where clause'