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 (17556,44766,5388,24411,45229,28530,6875,44762,44861,45561,45517,44878,22509,17351,45515,44837,3883,39676,17771,17601,17755,17092,44711,17756,17904,44848,44689,44894,5259,24438,45262,17527,17835,45177,44855,44835,18572,17114,18172,44531,18996,13,5993,44669,18719,10402,18648,17492,18279,44863,4686,44875,9341,43800,18237,8753,24441,17981,37057,44873,44764,3,17278,17839,44865,37267,44640,13922,17009,18688)
Unknown column 'np.person' in 'where clause'