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 (30986,18237,45072,44689,17527,44848,32454,45180,44865,36472,39676,17009,3,18172,34194,17114,16885,24411,18185,16935,18427,44775,45177,18301,44762,17556,6609,13988,44835,18981,6782,28530,45043,6875,24441,22509,44711,44767,30963,44868,44765,31354,44687,44866,18894,4765,5259,17492,44894,19078,37267,18353,5388,13425,45517,17703,18446,30135,5993,13,24412,45051,45346,18900,44640,45516,17092,43800,17771,44855)
Unknown column 'np.person' in 'where clause'