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 (45421,34194,44765,44775,44739,44861,17556,44855,3883,17351,44865,18237,44867,28313,44875,44762,17839,43800,44873,44835,16935,45262,45042,18279,17092,14402,45229,16885,24438,30963,18996,17114,45346,18446,13,5259,44764,44866,18650,18172,18794,17835,44766,4765,44845,45517,30986,45286,44768,17848,24411,44745,17278,44854,44531,18572,45043,17527,17703,18981,18894,44863,6862,31354,17492,24412,3,8753,44689,44894)
Unknown column 'np.person' in 'where clause'