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 (44745,5388,8753,44766,44884,17092,45515,44878,17556,18981,45517,17839,31354,18042,18794,44848,45229,44739,14622,17755,18446,34194,17756,44764,44767,19078,18900,24412,45180,18279,44685,6782,44861,44762,44775,44835,44669,18719,18286,17492,5993,44845,4765,44865,44836,45518,28530,44867,44531,44856,17601,16935,18894,6862,17657,18652,44689,45286,17009,5259,44894,45043,44873,30135,37057,45567,13988,17527,13,44853)
Unknown column 'np.person' in 'where clause'