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 (14402,24412,13922,19057,18446,44640,45229,17556,45517,18279,44858,17335,17492,44835,45043,18286,17114,44856,17278,17835,5410,18648,18652,44894,6862,44836,44848,44863,44689,18172,24441,17009,17527,44869,4765,6782,13,44669,43800,6609,17601,16935,28530,37057,44884,30986,44768,17904,45346,17771,18353,13988,45567,8753,44775,3,18572,44865,44873,22509,18042,45277,18430,24438,18688,44853,44674,14622,18894,45515)
Unknown column 'np.person' in 'where clause'