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 (44894,9341,44768,32454,24438,17237,44848,18237,17601,10402,45561,45072,18900,16885,44858,22509,44868,13,44766,37267,30986,17755,18446,44837,44739,44764,5388,17278,17335,45286,28313,45346,45229,45515,44849,44836,44775,44861,44531,44884,17556,5993,18353,17009,4765,24412,44640,17703,44689,18279,18650,18996,16935,18185,44863,44845,14402,44687,18688,18286,45277,45051,45043,45516,18981,44866,44870,17848,17835,44865)
Unknown column 'np.person' in 'where clause'