Query is invalid
JSON explain
{
"query_block": {
"select_id": 1,
"const_condition": "1",
"table": {
"table_name": "cm",
"access_type": "index",
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["id"],
"rows": 12,
"filtered": 100
},
"table": {
"table_name": "user",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["user_id"],
"ref": ["dev.cm.user_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(`user`.user_id = cm.user_id)"
},
"table": {
"table_name": "mute",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["user_id"],
"ref": ["dev.user.user_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(`user`.user_id = mute.user_id and trigcond(`user`.user_id is not null))"
},
"table": {
"table_name": "profil",
"access_type": "ref",
"possible_keys": ["profile_id"],
"key": "profile_id",
"key_length": "102",
"used_key_parts": ["profile_id", "field_name"],
"ref": ["dev.user.user_id", "const"],
"rows": 2,
"filtered": 100,
"attached_condition": "trigcond(`user`.user_id = profil.profile_id and profil.field_name = 'avatar' and trigcond(`user`.user_id is not null))"
},
"table": {
"table_name": "profi_i",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["image_id"],
"ref": ["dev.profil.image_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(profil.image_id is not null))"
},
"table": {
"table_name": "profi_d",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["image_id"],
"ref": ["dev.profil.detailed_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(profil.detailed_id is not null))"
}
}
}