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 (45517,18650,24412,44853,30963,30135,18237,45042,44873,4765,44766,17009,44689,18996,31354,5410,17601,18688,17703,45072,6609,44855,5993,24411,45515,44767,19057,44835,45346,44863,45277,44775,6875,18894,18652,3,45561,5259,44875,44531,16935,17839,9341,37267,45043,18172,13922,18279,13,17237,6862,5388,44765,18981,44685,44884,18446,17756,44745,44851,24438,45177,45567,44837,45421,18648,44865,17848,18430,36472)
Unknown column 'np.person' in 'where clause'