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 (44884,43800,45517,44853,18446,44689,17835,44671,17981,45277,28530,17755,45561,44687,22509,13988,5993,18279,17009,16935,44764,44531,44878,17351,19078,13922,17556,5410,9341,44858,14622,44766,17703,44775,17839,44711,5388,45421,18900,18572,18237,19057,45518,5259,45042,18172,44870,17756,8753,18185,18996,44836,44685,17904,18286,17335,17527,34194,44855,28313,6875,24438,24411,18688,44873,44894,17278,18981,39676,44863)
Unknown column 'np.person' in 'where clause'