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 (18286,10402,24441,19078,37267,44764,44873,44768,18353,18042,4765,17527,44861,17009,44849,44870,5993,44878,44858,5410,18572,30135,3,13988,44865,44689,24438,13922,37057,34194,44884,17092,4686,28530,44766,17556,44863,18981,44711,31354,45517,44835,17237,18301,3883,44739,18688,17848,18996,18172,45177,45561,18900,43800,14402,9341,5388,45286,44671,45229,45043,24411,28313,22509,17601,44856,17756,44853,18648,44854)
Unknown column 'np.person' in 'where clause'