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 (19078,44865,44854,17601,44674,44531,24411,18286,17527,45561,17835,44848,45051,18042,30135,44849,5388,44836,43800,44689,45518,45346,3,44687,14402,4765,18648,45516,18172,44835,44875,44856,13988,17839,18894,18185,45043,18719,17756,44640,44765,17556,44858,44671,45277,44853,18446,18900,18650,17492,44863,14622,44894,44775,18427,44739,17904,13922,28313,17278,44851,17009,8753,44767,44873,16935,24412,44766,18996,44855)
Unknown column 'np.person' in 'where clause'