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 (44775,3,44669,17601,10402,44671,6609,17839,19078,28313,45346,44531,17756,18650,19057,17657,45229,5259,44835,44837,18894,17848,18900,6862,44868,44866,44861,36472,44855,18652,44863,44848,44858,14622,45277,17092,45072,44764,28530,17335,13,17278,17114,44687,17771,16935,44765,17556,16885,44762,13425,18237,17237,37057,32454,5993,30135,18172,44884,44745,44873,14402,17492,45421,44767,44870,45042,44856,18719,44865)
Unknown column 'np.person' in 'where clause'