So a gaping security hole that compromises all data is less important than using a deprecated interface?
When you upgrade to PHP 5.6 and your application grinds to a halt because mysql_query isn't available, you'll be wishing you'd fixed it sooner.
(RHEL/CentOS is currently on PHP 5.3 and will stay there for a long time.)