Call to deprecated function db_query(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get a database connection injected into your service from the container and call query() on it. For example,

Total occurrences Projects affected Topmost group Category
525 136 200 Covered by rector
Filter projects
Project Group Occurrences Sort ascending
counter 1.x-dev 10000 43
h5p 1.0-rc17 500 37
quiz 6.0.0-alpha2 10000 21
user_import 1.x-dev 10000 17
drupalchat 1.x-dev 10000 16
ajax_file_download_counter 1.0 10000 15
skinr 2.x-dev 10000 12
dmaps 1.x-dev 10000 11
g2 1.x-dev 10000 11
split 1.0 10000 10
drupalmonitor 1.x-dev 10000 10
suggestion 1.x-dev 10000 10
signed_nodes 1.x-dev 10000 9
spin 1.x-dev 10000 9
single_sign_on 1.3 10000 9
audit_log 1.x-dev 10000 8
forena 1.x-dev 10000 7
stockapi 2.x-dev 10000 7
track_da_files 1.x-dev 10000 7
grouper 1.0 10000 7
comparison_builder 1.x-dev 10000 6
username_check 1.x-dev 10000 6
netauth 5.x-dev 10000 6
contest 1.x-dev 10000 6
email_verify 2.x-dev 10000 6
entity_gallery 1.x-dev 10000 6
taxonomy_import 1.x-dev 1000 6
context_node_template 1.x-dev 10000 6
uc_volume_pricing 1.x-dev 10000 5
views_system 1.x-dev 10000 5
worldcore 1.x-dev 10000 5
merci 2.x-dev 10000 5
devel_node_access 1.x-dev 10000 5
phpconfig 1.1 10000 5
ae 1.x-dev 10000 4
dibs 1.x-dev 10000 4
potx 1.x-dev 10000 4
social_login 2.89 10000 4
page_message 1.0-beta1 10000 3
paragraph_force_remove 1.x-dev 10000 3
uc_affirm 1.x-dev 10000 3
spiderslap 1.x-dev 10000 3
persiantools 1.x-dev 10000 3
smart_ip_ban 1.x-dev 10000 3
schemadata 1.x-dev 10000 3
ip 2.x-dev 10000 3
testswarm 1.x-dev 10000 3
chatroom 1.x-dev 10000 3
uc_quickpay 1.x-dev 10000 3
uc_paypal_plus 1.x-dev 10000 3
xwechat 1.x-dev 10000 2
writeup 1.x-dev 10000 2
workout 1.x-dev 10000 2
droogle_hangout 1.x-dev 10000 2
html5_audio_player 8.0.0 10000 2
itemsessionlock 1.x-dev 10000 2
data_import 1.x-dev 10000 2
autocomplete_multiselect_contact 1.x-dev 10000 2
certificate 4.0.0-alpha1 10000 2
menu_badges 1.x-dev 10000 2
mespronos 2.x-dev 10000 2
ipgeobase 1.x-dev 10000 2
login_security 1.x-dev 200 2
ologin 1.x-dev 10000 2
tckn_kontrol 2.0 10000 2
multiversion 1.x-dev 500 2
fontawesome_menu_icons 1.x-dev 500 2
file_download 1.x-dev 1000 2
quenforcer 1.x-dev 10000 2
stacks 1.x-dev 10000 2
redhen 1.x-dev 10000 2
contact_cc 1.x-dev 10000 2
access_by_ref 1.x-dev 10000 2
allinone_backup 3.x-dev 10000 2
weather_block 1.x-dev 10000 2
owasp_compliant_login_velocity_check 1.x-dev 10000 2
moneysuite 0.x-dev 10000 2
user_revision 1.x-dev 10000 2
favorites 2.x-dev 10000 2
cura 1.x-dev 10000 2
support 1.x-dev 10000 2
site_notifications 1.x-dev 10000 2
bulk_author_update 1.x-dev 10000 2
duplicatemail 1.x-dev 10000 1
clear_custom_cache 1.x-dev 10000 1
proconcom 1.x-dev 10000 1
exerciser 1.x-dev 10000 1
quick_data 1.x-dev 10000 1
toc_node 1.x-dev 10000 1
webform_feedback 1.x-dev 10000 1
ppoidc 1.x-dev 10000 1
file_ownage 1.x-dev 10000 1
semantic_ui_api 1.x-dev 10000 1
tmgmt_apostrophgroup_provider 1.x-dev 10000 1
metatags_quick 3.x-dev 10000 1
section_workflow 1.x-dev 10000 1
panels_rest_expose 1.x-dev 10000 1
drupal_helper 1.x-dev 10000 1
copysafe_web_protection 1.0 10000 1
yg_corporate 1.0 10000 1
message_private 1.x-dev 10000 1
cloudinary 1.x-dev 10000 1
ip_ban 1.x-dev 10000 1
custom_db_table_views 1.x-dev 10000 1
wechat 1.x-dev 10000 1
google_adwords 1.x-dev 10000 1
give 1.x-dev 10000 1
restaurant_ds 1.0 10000 1
captcha_pack 1.x-dev 10000 1
node_authlink 1.x-dev 10000 1
data 1.x-dev 10000 1
kpi_analytics 1.x-dev 10000 1
tfa 1.x-dev 1000 1
name 1.x-dev 500 1
blocktabs 1.x-dev 500 1
admin_notes 2.0 10000 1
object_log 1.x-dev 10000 1
who_bought_what 1.x-dev 10000 1
message_thread 1.x-dev 10000 1
balance_tracker 1.x-dev 10000 1
stools 1.x-dev 10000 1
cloudwords 1.x-dev 10000 1
sms_ui 1.x-dev 10000 1
impression 1.0-beta1 10000 1
zurb_clean_blog 1.x-dev 10000 1
alipay_api 1.x-dev 10000 1
content_alerts 2.2 10000 1
akismet 1.x-dev 10000 1
chinese_captcha 1.x-dev 10000 1
login_history 1.x-dev 500 1
node_paypal_payment 1.x-dev 10000 1
comment_notifications 1.x-dev 10000 1
message_history 1.x-dev 10000 1
registration_form 2.x-dev 10000 1
private_notes 1.x-dev 10000 1
stacksight 1.x-dev 10000 1