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 (18430,45516,44745,18650,37057,24412,4765,32454,44739,18279,13425,30135,17114,19057,5993,44866,44867,44711,17755,44775,14622,44531,45177,44853,13988,17601,17237,5259,17556,6875,44851,44854,44869,44836,28313,3,8753,9341,17703,17848,44878,18572,5410,44848,44868,18172,45346,44865,17527,17092,17335,43800,17492,17351,44765,16935,18353,44873,17009,37267,17771,44875,44762,45262,45072,17835,24438,18894,44674,44835)
Unknown column 'np.person' in 'where clause'