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 (18172,45277,24438,17848,45346,14402,44835,17839,18900,44866,18648,14622,18286,17835,44894,18996,17657,44765,5388,45517,45262,17556,44687,44531,18042,17492,17335,13922,30986,17009,44853,44671,28530,17092,45177,3,44685,19057,45229,5993,18185,44711,45516,6875,24412,17601,30135,6609,17756,44868,44884,44837,17114,45515,45561,30963,44845,34194,45518,3883,18650,44836,44674,37057,13988,17981,18301,45043,5410,10402)
Unknown column 'np.person' in 'where clause'