mirror of
https://github.com/openvk/openvk
synced 2024-12-24 17:41:07 +03:00
6 lines
No EOL
383 B
Text
Executable file
6 lines
No EOL
383 B
Text
Executable file
(SELECT follower AS __id FROM
|
|
(SELECT follower FROM subscriptions WHERE target=? AND model="openvk\\Web\\Models\\Entities\\User") u0
|
|
INNER JOIN
|
|
(SELECT target FROM subscriptions WHERE follower=? AND model="openvk\\Web\\Models\\Entities\\User") u1
|
|
ON u0.follower = u1.target) u2
|
|
INNER JOIN profiles ON profiles.id = u2.__id WHERE online > (UNIX_TIMESTAMP() - 300) |